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
475B

  1. ( Current Y position on the LCD, that is, where we're going to
  2. spit our next glyph. )
  3. : LCD_CURY 0 _mem+ ;
  4. : LCD_CURX 1 _mem+ ;
  5. ( two pixel buffers that are 8 pixels wide (1b) by FNTH
  6. pixels high. This is where we compose our resulting pixels
  7. blocks when spitting a glyph. )
  8. : LCD_BUF 2 _mem+ ;
  9. : _cmd 0x10 ( CMD ) PC! _wait ;
  10. : _data! 0x11 ( DATA ) PC! _wait ;
  11. : _data@ 0x11 ( DATA ) PC@ _wait ;
  12. : LCDOFF 0x02 ( CMD_DISABLE ) _cmd ;
  13. : LCDON 0x03 ( CMD_ENABLE ) _cmd ;