keyboard: formatting

This commit is contained in:
Lukas F. Hartmann 2023-08-14 22:37:44 +02:00
parent fe767923e2
commit a0fef4b079
No known key found for this signature in database
GPG Key ID: 376511EB67AD7BAF
1 changed files with 11 additions and 11 deletions

View File

@ -131,7 +131,7 @@ void on_uart_rx() {
}
if (c == '\n') {
// TODO hack
if (uart_rx_i>6) {
gfx_clear();
//gfx_poke_str(0, 3, uart_rx_line);
@ -916,19 +916,19 @@ void tud_hid_set_report_cb(uint8_t instance, uint8_t report_id, hid_report_type_
anim_hello();
}
else if (cmd == strnstr(cmd, CMD_OLED_BRITE, 4)) {
uint8_t val = (uint8_t)atoi((const char*)&buffer[4]);
gfx_poke(0,0,'0'+(val/100));
gfx_poke(1,0,'0'+((val%100)/10));
gfx_poke(2,0,'0'+(val%10));
gfx_flush();
uint8_t val = (uint8_t)atoi((const char*)&buffer[4]);
gfx_poke(0,0,'0'+(val/100));
gfx_poke(1,0,'0'+((val%100)/10));
gfx_poke(2,0,'0'+(val%10));
gfx_flush();
gfx_contrast(val);
}
else if (cmd == strnstr(cmd, CMD_OLED_BRITE2, 4)) {
uint8_t val = (uint8_t)atoi((const char*)&buffer[4]);
gfx_poke(0,0,'0'+(val/100));
gfx_poke(1,0,'0'+((val%100)/10));
gfx_poke(2,0,'0'+(val%10));
gfx_flush();
uint8_t val = (uint8_t)atoi((const char*)&buffer[4]);
gfx_poke(0,0,'0'+(val/100));
gfx_poke(1,0,'0'+((val%100)/10));
gfx_poke(2,0,'0'+(val%10));
gfx_flush();
gfx_precharge(val);
}
}