def setEnvironmentalData(self, humidity, temperature):
'''<STR_LIT>'''<EOL>hum_perc = humidity << <NUM_LIT:1><EOL>parts = math.fmod(temperature)<EOL>fractional = parts[<NUM_LIT:0>]<EOL>temperature = parts[<NUM_LIT:1>]<EOL>temp_high = ((temperature + <NUM_LIT>) << <NUM_LIT:9>)<EOL>temp_low = ((fractional / <NUM_LIT>) & <NUM_LIT>)<EOL>temp_conv = (temp_high | temp_low)<EOL>buf = [hum_perc, <NUM_LIT>,((temp_conv >> <NUM_LIT:8>) & <NUM_LIT>), (temp_conv & <NUM_LIT>)]<EOL>self._device.writeList(CCS811_ENV_DATA, buf)<EOL>
Humidity is stored as an unsigned 16 bits in 1/512%RH. The
        default value is 50% = 0x64, 0x00. As an example 48.5%
        humidity would be 0x61, 0x00.