luat_lcd_gc9106l.c 922 B

12345678910111213141516171819202122232425262728293031
  1. #include "luat_base.h"
  2. #include "luat_lcd.h"
  3. #define LUAT_LOG_TAG "gc9106l"
  4. #include "luat_log.h"
  5. static const uint16_t gc9106l_init_cmds[] = {
  6. //------------------------------------gc9106lS Frame Rate-----------------------------------------//
  7. 0x02FE,
  8. 0x02EF,
  9. 0x02B3,0x0303,
  10. 0x0221,
  11. // 0x0236,0x03C0,
  12. 0x023A,0x0305,
  13. 0x02B4,0x0321,
  14. 0x02F0,0x032D,0x0354,0x0324,0x0361,0x03AB,0x032E,0x032F,0x0300,0x0320,0x0310,0x0310,0x0317,0x0313,0x030F,
  15. 0x02F1,0x0302,0x0322,0x0325,0x0335,0x03A8,0x0308,0x0308,0x0300,0x0300,0x0309,0x0309,0x0317,0x0318,0x030F,
  16. 0x02FE,
  17. 0x02FF,
  18. };
  19. luat_lcd_opts_t lcd_opts_gc9106l = {
  20. .name = "gc9106l",
  21. .init_cmds_len = sizeof(gc9106l_init_cmds)/sizeof(gc9106l_init_cmds[0]),
  22. .init_cmds = gc9106l_init_cmds,
  23. .direction0 = 0xC8,
  24. .direction90 = 0x08,
  25. .direction180 = 0x68,
  26. .direction270 = 0xA8,
  27. };