ir = lum >> 16;// what does this mean cant get the syntax?
full = lum & 0xFFFF; //what does this mean cant get the syntax?
Moderators: adafruit_support_bill, adafruit
ir = lum >> 16;// what does this mean cant get the syntax?
full = lum & 0xFFFF; //what does this mean cant get the syntax?
Also the sensor is giving me 0 luminosity. Even when the sensor is disconnected and i run the code it gives found sensor.
ir = lum >> 16;// what does this mean cant get the syntax?
That is a binary shift operation. It shifts the value right by 16 bits (equivalent to a divide by 65535)

Return to General Project help
Users browsing this forum: Google [Bot] and 6 guests