2020-05-08 21:56:34 +10:00
|
|
|
: _cmd LCD_PORT_CMD PC! LCDWAIT ;
|
|
|
|
: _data! LCD_PORT_DATA PC! LCDWAIT ;
|
|
|
|
: _data@ LCD_PORT_DATA PC@ LCDWAIT ;
|
2020-05-08 20:50:34 +10:00
|
|
|
: LCDOFF 0x02 ( CMD_DISABLE ) _cmd ;
|
2020-05-08 23:07:44 +10:00
|
|
|
: LCDON 0x03 ( CMD_ENABLE ) _cmd ;
|
2020-05-09 01:36:50 +10:00
|
|
|
: _yinc 0x07 _cmd ; : _xinc 0x05 _cmd ;
|
2020-05-09 03:24:55 +10:00
|
|
|
: _zoff! ( off -- ) 0x40 + _cmd ;
|
|
|
|
: _col! ( col -- ) 0x20 + _cmd ;
|
|
|
|
: _row! ( row -- ) 0x80 + _cmd ;
|
2020-05-08 23:07:44 +10:00
|
|
|
: LCD$
|
|
|
|
H@ TI_MEM ! FNTH 2 * 2+ ALLOT
|
|
|
|
LCDON 0x01 ( 8-bit mode ) _cmd
|
2020-05-09 03:24:55 +10:00
|
|
|
FNTH 1+ _zoff!
|
2020-05-08 23:07:44 +10:00
|
|
|
;
|