void terminal__print_hex(const uint8_t value) { const uint16_t string = byte__to_hex_string(value); const uint8_t h = string >> 8; const uint8_t l = string & 0xFF; terminal__putc(h); terminal__putc(l); }
/* re_goto_bottom(): * used to go to last used screen line */ libedit_private void re_goto_bottom(EditLine *el) { terminal_move_to_line(el, el->el_refresh.r_oldcv); terminal__putc(el, '\n'); re_clear_display(el); terminal__flush(el); }
void debug__putc(char c) { terminal__putc(c); }
void keypad__on_event(const uint8_t keyevent) { terminal__putc(keyevent); }
void terminal__print_bcd(const uint8_t value) { const uint8_t h = value >> 4; terminal__putc(h ? h + '0' : ' '); terminal__putc((value & 0x0F) + '0'); }
void print_result(const char *test_name, bool result) { terminal__putc('\n'); terminal__print_P(test_name); terminal__print_P(result ? PSTR(" OK") : PSTR(" FAIL")); }