Add 332 color
This commit is contained in:
parent
76cc3227bb
commit
b4aa9cd867
9 changed files with 128 additions and 29 deletions
|
@ -27,6 +27,13 @@
|
|||
#define LCR_RACING_TICK_MS \
|
||||
(100000 / (LCR_RACING_FPS * LCR_SETTING_TIME_MULTIPLIER))
|
||||
|
||||
#if LCR_SETTING_332_COLOR
|
||||
#define LCR_CONVERT_COLOR(c) \
|
||||
(((c & 0xe000) >> 8) | ((c & 0x0700) >> 6) | ((c & 0x001f) >> 3))
|
||||
#else
|
||||
#define LCR_CONVERT_COLOR(c) c
|
||||
#endif
|
||||
|
||||
char _LCR_hexDigit(int i)
|
||||
{
|
||||
return i < 10 ? '0' + i : ('a' - 10 + i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue