keyboard: formatting
This commit is contained in:
parent
fe767923e2
commit
a0fef4b079
1 changed files with 11 additions and 11 deletions
|
@ -916,19 +916,19 @@ void tud_hid_set_report_cb(uint8_t instance, uint8_t report_id, hid_report_type_
|
||||||
anim_hello();
|
anim_hello();
|
||||||
}
|
}
|
||||||
else if (cmd == strnstr(cmd, CMD_OLED_BRITE, 4)) {
|
else if (cmd == strnstr(cmd, CMD_OLED_BRITE, 4)) {
|
||||||
uint8_t val = (uint8_t)atoi((const char*)&buffer[4]);
|
uint8_t val = (uint8_t)atoi((const char*)&buffer[4]);
|
||||||
gfx_poke(0,0,'0'+(val/100));
|
gfx_poke(0,0,'0'+(val/100));
|
||||||
gfx_poke(1,0,'0'+((val%100)/10));
|
gfx_poke(1,0,'0'+((val%100)/10));
|
||||||
gfx_poke(2,0,'0'+(val%10));
|
gfx_poke(2,0,'0'+(val%10));
|
||||||
gfx_flush();
|
gfx_flush();
|
||||||
gfx_contrast(val);
|
gfx_contrast(val);
|
||||||
}
|
}
|
||||||
else if (cmd == strnstr(cmd, CMD_OLED_BRITE2, 4)) {
|
else if (cmd == strnstr(cmd, CMD_OLED_BRITE2, 4)) {
|
||||||
uint8_t val = (uint8_t)atoi((const char*)&buffer[4]);
|
uint8_t val = (uint8_t)atoi((const char*)&buffer[4]);
|
||||||
gfx_poke(0,0,'0'+(val/100));
|
gfx_poke(0,0,'0'+(val/100));
|
||||||
gfx_poke(1,0,'0'+((val%100)/10));
|
gfx_poke(1,0,'0'+((val%100)/10));
|
||||||
gfx_poke(2,0,'0'+(val%10));
|
gfx_poke(2,0,'0'+(val%10));
|
||||||
gfx_flush();
|
gfx_flush();
|
||||||
gfx_precharge(val);
|
gfx_precharge(val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue