adafruit / adafruit/RGB-matrix-Panel
Add Support for unit32_t rgb values
- Dominant language
- C++
- Stars
- 328
- Forks
- 147
- PR merge metrics
- No merged PRs in 30d
Description
For example :
uint16_t RGBmatrixPanel::Color333(uint32_t c) {
// RRRrrGGGgggBBBbb
```
uint8_t
r = (uint8_t)(c >> 16),
g = (uint8_t)(c >> 8),
b = (uint8_t)c;
```
return ((r & 0x7) << 13) | ((r & 0x6) << 10) |
((g & 0x7) << 8) | ((g & 0x7) << 5) |
((b & 0x7) << 2) | ((b & 0x6) >> 1);
}
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the RGBmatrixPanel::Color333 entry point and inspect how color values are currently accepted and converted. Compare the requested uint32_t RGB layout with the existing behavior; done means uint32_t RGB values are supported without breaking the Color333 conversion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arduino, cpp
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100