PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

99 líneas
2.2KB

  1. case ST7735S:
  2. LCD_Write_COM(0x11);//Sleep exit
  3. delay(120);
  4. //ST7735R Frame Rate
  5. LCD_Write_COM(0xB1);
  6. LCD_Write_DATA(0x05);
  7. LCD_Write_DATA(0x3C);
  8. LCD_Write_DATA(0x3C);
  9. LCD_Write_COM(0xB2);
  10. LCD_Write_DATA(0x05);
  11. LCD_Write_DATA(0x3C);
  12. LCD_Write_DATA(0x3C);
  13. LCD_Write_COM(0xB3);
  14. LCD_Write_DATA(0x05);
  15. LCD_Write_DATA(0x3C);
  16. LCD_Write_DATA(0x3C);
  17. LCD_Write_DATA(0x05);
  18. LCD_Write_DATA(0x3C);
  19. LCD_Write_DATA(0x3C);
  20. LCD_Write_COM(0xB4); //Column inversion
  21. LCD_Write_DATA(0x03);
  22. //ST7735R Power Sequence
  23. LCD_Write_COM(0xC0);
  24. LCD_Write_DATA(0x28);
  25. LCD_Write_DATA(0x08);
  26. LCD_Write_DATA(0x04);
  27. LCD_Write_COM(0xC1);
  28. LCD_Write_DATA(0xC0);
  29. LCD_Write_COM(0xC2);
  30. LCD_Write_DATA(0x0D);
  31. LCD_Write_DATA(0x00);
  32. LCD_Write_COM(0xC3);
  33. LCD_Write_DATA(0x8D);
  34. LCD_Write_DATA(0x2A);
  35. LCD_Write_COM(0xC4);
  36. LCD_Write_DATA(0x8D);
  37. LCD_Write_DATA(0xEE);
  38. LCD_Write_COM(0xC5); //VCOM
  39. LCD_Write_DATA(0x1A);
  40. LCD_Write_COM(0x36); //MX, MY, RGB mode
  41. LCD_Write_DATA(0xC0);
  42. //ST7735R Gamma Sequence
  43. LCD_Write_COM(0xE0);
  44. LCD_Write_DATA(0x03);
  45. LCD_Write_DATA(0x22);
  46. LCD_Write_DATA(0x07);
  47. LCD_Write_DATA(0x0A);
  48. LCD_Write_DATA(0x2E);
  49. LCD_Write_DATA(0x30);
  50. LCD_Write_DATA(0x25);
  51. LCD_Write_DATA(0x2A);
  52. LCD_Write_DATA(0x28);
  53. LCD_Write_DATA(0x26);
  54. LCD_Write_DATA(0x2E);
  55. LCD_Write_DATA(0x3A);
  56. LCD_Write_DATA(0x00);
  57. LCD_Write_DATA(0x01);
  58. LCD_Write_DATA(0x03);
  59. LCD_Write_DATA(0x13);
  60. LCD_Write_COM(0xE1);
  61. LCD_Write_DATA(0x04);
  62. LCD_Write_DATA(0x16);
  63. LCD_Write_DATA(0x06);
  64. LCD_Write_DATA(0x0D);
  65. LCD_Write_DATA(0x2D);
  66. LCD_Write_DATA(0x26);
  67. LCD_Write_DATA(0x23);
  68. LCD_Write_DATA(0x27);
  69. LCD_Write_DATA(0x27);
  70. LCD_Write_DATA(0x25);
  71. LCD_Write_DATA(0x2D);
  72. LCD_Write_DATA(0x3B);
  73. LCD_Write_DATA(0x00);
  74. LCD_Write_DATA(0x01);
  75. LCD_Write_DATA(0x04);
  76. LCD_Write_DATA(0x13);
  77. //LCD_Write_COM(0x2A);
  78. //LCD_Write_DATA(0x00);
  79. //LCD_Write_DATA(0x00);
  80. //LCD_Write_DATA(0x00);
  81. //LCD_Write_DATA(0x7F);
  82. //LCD_Write_COM(0x2B);
  83. //LCD_Write_DATA(0x00);
  84. //LCD_Write_DATA(0x00);
  85. //LCD_Write_DATA(0x00);
  86. //LCD_Write_DATA(0x9F);
  87. LCD_Write_COM(0x3A); //65k mode
  88. LCD_Write_DATA(0x05);
  89. LCD_Write_COM(0x29);//Display on
  90. break;