astro-pi / python-sense-hat

Source code for Sense HAT Python library
https://sense-hat.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
505 stars 253 forks source link

Bug: Individual raw values (red_raw, green_raw, etc) computation error #132

Open tvoverbeek opened 1 year ago

tvoverbeek commented 1 year ago

When fetching the individual raw values from the sensor only one register is read, i.e. only the least significant byte. The actual values are 2 bytes (2 consecutive registers). Fixed in my PR #131 for simultaneous support of both colour sensor versions.