Logging Data from TCS34725 RGB Color Sensor

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Logging Data from TCS34725 RGB Color Sensor

Post by adafruit_support_bill »

0-255 is an 8-bit range. To change a 16 bit value into an 8-bit value, you divide by 256. You can do that anywhere after you read the raw 16 bit values. Just keep in mind that you are throwing away most of your resolution in doing that.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”