luat_lcd_nv3037.c 906 B

12345678910111213141516171819202122232425262728293031323334
  1. #include "luat_base.h"
  2. #include "luat_lcd.h"
  3. #define LUAT_LOG_TAG "nv3037"
  4. #include "luat_log.h"
  5. static const uint16_t nv3037_init_cmds[] = {
  6. 0x02fd,0x0306,0x0308,
  7. 0x0283,0x0313,
  8. 0x0286,0x0307,
  9. 0x02F1,0x0301,
  10. 0x0278,0x0384,
  11. 0x027A,0x032c,
  12. 0x02b0,0x030D,0x0304,0x0311,0x0311,0x0311,0x0313,0x0317,0x030f,
  13. 0x02b1,0x0318, 0x0333,
  14. 0x02b2,0x0300,0x0307,0x0308,0x032c,0x032d,0x0330,
  15. 0x02b3,0x030D,0x0304,0x0311,0x0311,0x0311,0x0314,0x0318,0x0310,
  16. 0x02b4,0x0317,0x0334,
  17. 0x02b5,0x0300,0x0307,0x0308,0x032c,0x032d,0x0330,
  18. 0x02F6,0x0301,0x0310,0x0301,
  19. 0x023A,0x0355,
  20. };
  21. luat_lcd_opts_t lcd_opts_nv3037 = {
  22. .name = "nv3037",
  23. .init_cmds_len = sizeof(nv3037_init_cmds)/sizeof(nv3037_init_cmds[0]),
  24. .init_cmds = nv3037_init_cmds,
  25. .direction0 = 0x00,
  26. .direction90 = 0xC0,
  27. .direction180 = 0x70,
  28. .direction270 = 0xA0,
  29. .rb_swap = 1,
  30. };