123 #define lcd_int(i) lcd_number(i,sign,e0) 126 #define lcd_unsigned(u) lcd_number(u,unsign,e0) 131 #define lcd_clock(t) lcd_number(t,unsign,e_2) 134 #define lcd_digit(d) lcd_number(d,digit,digit_comma) 150 #define ASMVOLATILE __volatile__ 204 #endif // __rom_lcd_h__
single digit on the right
single digit on the right
1000ths, problematic with negatives
lcd_comma_style
LCD comma display styles.
0 dots: show 5. 1..4 dots: subtract one
the IR display values are mutually exclusive.
seemingly without effect. cycle reset?
0..3 quarters: add one. 4 quarters: reset
the IR display values are mutually exclusive.
0..4 dots: add a dot. 5 dots: reset
__asm__("\.text\.globl _atomic_inc\ _atomic_inc:\ stc ccr, r1h ; save flags\ orc #0x80, ccr ; disable all but NMI\ mov.b @r0, r1l\ inc r1l\ mov.b r1l, @r0\ ldc r1h, ccr ; restore flags\ rts\")
lcd_number_style
LCD number display styles.
void lcd_hide(lcd_segment segment)
hide LCD segment
void lcd_number(int i, lcd_number_style n, lcd_comma_style c)
show number on LCD display
void lcd_show(lcd_segment segment)
show LCD segment
unsigned, 0 displayed as 0000
void lcd_clear(void)
clear LCD display
lcd_segment
LCD segment codes.