Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
416B

  1. ( Required config: LCD_MEM )
  2. : _mem+ [ LCD_MEM LITN ] @ + ;
  3. : FNTW 3 ; : FNTH 5 ;
  4. ( Wait until the lcd is ready to receive a command. It's a bit
  5. weird to implement a waiting routine in asm, but the forth
  6. version is a bit heavy and we don't want to wait longer than
  7. we have to. )
  8. CODE _wait
  9. BEGIN,
  10. 0x10 ( CMD ) INAi,
  11. RLA, ( When 7th bit is clr, we can send a new cmd )
  12. JRC, AGAIN,
  13. ;CODE