feat: 增加 vofa 打印到上位机功能

This commit is contained in:
bmy
2024-03-11 20:25:14 +08:00
parent 681b47736c
commit 3bb5383c06
7 changed files with 36 additions and 14 deletions

View File

@@ -231,7 +231,7 @@ uint16_t rgb_gradient(uint16_t i)
r_h = (uint8_t)r;
g_h = (uint8_t)g;
b_h = (uint8_t)b;
printf("%d - r:%d, g:%d, b:%d\r\n", i, r_h, g_h, b_h);
// printf("%d - r:%d, g:%d, b:%d\r\n", i, r_h, g_h, b_h);
color |= (r_h & 0x1F) << 11;
color |= (g_h & 0x3F) << 5;
color |= (b_h & 0x1F);