PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
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.

72 lines
1.5KB

  1. case HX8340B_S:
  2. LCD_Write_COM(0xC1);
  3. LCD_Write_DATA(0xFF);
  4. LCD_Write_DATA(0x83);
  5. LCD_Write_DATA(0x40);
  6. LCD_Write_COM(0x11);
  7. delay(100);
  8. LCD_Write_COM(0xCA);
  9. LCD_Write_DATA(0x70);
  10. LCD_Write_DATA(0x00);
  11. LCD_Write_DATA(0xD9);
  12. LCD_Write_DATA(0x01);
  13. LCD_Write_DATA(0x11);
  14. LCD_Write_COM(0xC9);
  15. LCD_Write_DATA(0x90);
  16. LCD_Write_DATA(0x49);
  17. LCD_Write_DATA(0x10);
  18. LCD_Write_DATA(0x28);
  19. LCD_Write_DATA(0x28);
  20. LCD_Write_DATA(0x10);
  21. LCD_Write_DATA(0x00);
  22. LCD_Write_DATA(0x06);
  23. delay(20);
  24. LCD_Write_COM(0xC2);
  25. LCD_Write_DATA(0x60);
  26. LCD_Write_DATA(0x71);
  27. LCD_Write_DATA(0x01);
  28. LCD_Write_DATA(0x0E);
  29. LCD_Write_DATA(0x05);
  30. LCD_Write_DATA(0x02);
  31. LCD_Write_DATA(0x09);
  32. LCD_Write_DATA(0x31);
  33. LCD_Write_DATA(0x0A);
  34. LCD_Write_COM(0xc3);
  35. LCD_Write_DATA(0x67);
  36. LCD_Write_DATA(0x30);
  37. LCD_Write_DATA(0x61);
  38. LCD_Write_DATA(0x17);
  39. LCD_Write_DATA(0x48);
  40. LCD_Write_DATA(0x07);
  41. LCD_Write_DATA(0x05);
  42. LCD_Write_DATA(0x33);
  43. delay(10);
  44. LCD_Write_COM(0xB5);
  45. LCD_Write_DATA(0x35);
  46. LCD_Write_DATA(0x20);
  47. LCD_Write_DATA(0x45);
  48. LCD_Write_COM(0xB4);
  49. LCD_Write_DATA(0x33);
  50. LCD_Write_DATA(0x25);
  51. LCD_Write_DATA(0x4c);
  52. delay(10);
  53. LCD_Write_COM(0x3a);
  54. LCD_Write_DATA(0x05);
  55. LCD_Write_COM(0x29);
  56. delay(10);
  57. LCD_Write_COM(0x2a);
  58. LCD_Write_DATA(0x00);
  59. LCD_Write_DATA(0x00);
  60. LCD_Write_DATA(0x00);
  61. LCD_Write_DATA(0xaf);
  62. LCD_Write_COM(0x2b);
  63. LCD_Write_DATA(0x00);
  64. LCD_Write_DATA(0x00);
  65. LCD_Write_DATA(0x00);
  66. LCD_Write_DATA(0xdb);
  67. LCD_Write_COM(0x2c);
  68. break;