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.

пре 3 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. case R61581:
  2. LCD_Write_COM(0xB0);
  3. LCD_Write_DATA(0x1E);
  4. LCD_Write_COM(0xB0);
  5. LCD_Write_DATA(0x00);
  6. LCD_Write_COM(0xB3);
  7. LCD_Write_DATA(0x02);
  8. LCD_Write_DATA(0x00);
  9. LCD_Write_DATA(0x00);
  10. LCD_Write_DATA(0x10);
  11. LCD_Write_COM(0xB4);
  12. LCD_Write_DATA(0x00);//0X10
  13. // LCD_Write_COM(0xB9); //PWM Settings for Brightness Control
  14. // LCD_Write_DATA(0x01);// Disabled by default.
  15. // LCD_Write_DATA(0xFF); //0xFF = Max brightness
  16. // LCD_Write_DATA(0xFF);
  17. // LCD_Write_DATA(0x18);
  18. LCD_Write_COM(0xC0);
  19. LCD_Write_DATA(0x03);
  20. LCD_Write_DATA(0x3B);//
  21. LCD_Write_DATA(0x00);
  22. LCD_Write_DATA(0x00);
  23. LCD_Write_DATA(0x00);
  24. LCD_Write_DATA(0x01);
  25. LCD_Write_DATA(0x00);//NW
  26. LCD_Write_DATA(0x43);
  27. LCD_Write_COM(0xC1);
  28. LCD_Write_DATA(0x08);
  29. LCD_Write_DATA(0x15);//CLOCK
  30. LCD_Write_DATA(0x08);
  31. LCD_Write_DATA(0x08);
  32. LCD_Write_COM(0xC4);
  33. LCD_Write_DATA(0x15);
  34. LCD_Write_DATA(0x03);
  35. LCD_Write_DATA(0x03);
  36. LCD_Write_DATA(0x01);
  37. LCD_Write_COM(0xC6);
  38. LCD_Write_DATA(0x02);
  39. LCD_Write_COM(0xC8);
  40. LCD_Write_DATA(0x0c);
  41. LCD_Write_DATA(0x05);
  42. LCD_Write_DATA(0x0A);//0X12
  43. LCD_Write_DATA(0x6B);//0x7D
  44. LCD_Write_DATA(0x04);
  45. LCD_Write_DATA(0x06);//0x08
  46. LCD_Write_DATA(0x15);//0x0A
  47. LCD_Write_DATA(0x10);
  48. LCD_Write_DATA(0x00);
  49. LCD_Write_DATA(0x60);//0x23
  50. LCD_Write_COM(0x36);
  51. LCD_Write_DATA(0x0A);
  52. LCD_Write_COM(0x0C);
  53. LCD_Write_DATA(0x55);
  54. LCD_Write_COM(0x3A);
  55. LCD_Write_DATA(0x55);
  56. LCD_Write_COM(0x38);
  57. LCD_Write_COM(0xD0);
  58. LCD_Write_DATA(0x07);
  59. LCD_Write_DATA(0x07);//VCI1
  60. LCD_Write_DATA(0x14);//VRH 0x1D
  61. LCD_Write_DATA(0xA2);//BT 0x06
  62. LCD_Write_COM(0xD1);
  63. LCD_Write_DATA(0x03);
  64. LCD_Write_DATA(0x5A);//VCM 0x5A
  65. LCD_Write_DATA(0x10);//VDV
  66. LCD_Write_COM(0xD2);
  67. LCD_Write_DATA(0x03);
  68. LCD_Write_DATA(0x04);//0x24
  69. LCD_Write_DATA(0x04);
  70. LCD_Write_COM(0x11);
  71. delay(150);
  72. LCD_Write_COM(0x2A);
  73. LCD_Write_DATA(0x00);
  74. LCD_Write_DATA(0x00);
  75. LCD_Write_DATA(0x01);
  76. LCD_Write_DATA(0xDF);//320
  77. LCD_Write_COM(0x2B);
  78. LCD_Write_DATA(0x00);
  79. LCD_Write_DATA(0x00);
  80. LCD_Write_DATA(0x01);
  81. LCD_Write_DATA(0x3F);//480
  82. delay(100);
  83. LCD_Write_COM(0x29);
  84. delay(30);
  85. LCD_Write_COM(0x2C);
  86. delay(30);
  87. break;