uint16_t SAT_Lum::getLuminosity (uint8_t channel) { uint32_t x = getFullLuminosity(); if (channel == 0) { // Reads two byte value from channel 0 (visible + infrared) return (x & 0xFFFF); } else if (channel == 1) { // Reads two byte value from channel 1 (infrared) return (x >> 16); } else if (channel == 2) {
uint16_t Adafruit_TSL2591::getLuminosity (uint8_t channel) { uint32_t x = getFullLuminosity(); if (channel == TSL2591_FULLSPECTRUM) { // Reads two byte value from channel 0 (visible + infrared) return (x & 0xFFFF); } else if (channel == TSL2591_INFRARED) { // Reads two byte value from channel 1 (infrared) return (x >> 16); } else if (channel == TSL2591_VISIBLE)