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.

64 lines
1.8KB

  1. case ILI9327:
  2. LCD_Write_COM(0xE9);
  3. LCD_Write_DATA(0x00,0x20);
  4. LCD_Write_COM(0x11); //Exit Sleep
  5. delay(100);
  6. LCD_Write_COM(0xD1);
  7. LCD_Write_DATA(0x00,0x00);
  8. LCD_Write_DATA(0x00,0x71);
  9. LCD_Write_DATA(0x00,0x19);
  10. LCD_Write_COM(0xD0);
  11. LCD_Write_DATA(0x00,0x07);
  12. LCD_Write_DATA(0x00,0x01);
  13. LCD_Write_DATA(0x00,0x08);
  14. LCD_Write_COM(0x36);
  15. LCD_Write_DATA(0x00,0x48);
  16. LCD_Write_COM(0x3A);
  17. LCD_Write_DATA(0x00,0x05);
  18. LCD_Write_COM(0xC1);
  19. LCD_Write_DATA(0x00,0x10);
  20. LCD_Write_DATA(0x00,0x10);
  21. LCD_Write_DATA(0x00,0x02);
  22. LCD_Write_DATA(0x00,0x02);
  23. LCD_Write_COM(0xC0); //Set Default Gamma
  24. LCD_Write_DATA(0x00,0x00);
  25. LCD_Write_DATA(0x00,0x35);
  26. LCD_Write_DATA(0x00,0x00);
  27. LCD_Write_DATA(0x00,0x00);
  28. LCD_Write_DATA(0x00,0x01);
  29. LCD_Write_DATA(0x00,0x02);
  30. LCD_Write_COM(0xC5); //Set frame rate
  31. LCD_Write_DATA(0x00,0x04);
  32. LCD_Write_COM(0xD2); //power setting
  33. LCD_Write_DATA(0x00,0x01);
  34. LCD_Write_DATA(0x00,0x44);
  35. LCD_Write_COM(0xC8); //Set Gamma
  36. LCD_Write_DATA(0x00,0x04);
  37. LCD_Write_DATA(0x00,0x67);
  38. LCD_Write_DATA(0x00,0x35);
  39. LCD_Write_DATA(0x00,0x04);
  40. LCD_Write_DATA(0x00,0x08);
  41. LCD_Write_DATA(0x00,0x06);
  42. LCD_Write_DATA(0x00,0x24);
  43. LCD_Write_DATA(0x00,0x01);
  44. LCD_Write_DATA(0x00,0x37);
  45. LCD_Write_DATA(0x00,0x40);
  46. LCD_Write_DATA(0x00,0x03);
  47. LCD_Write_DATA(0x00,0x10);
  48. LCD_Write_DATA(0x00,0x08);
  49. LCD_Write_DATA(0x00,0x80);
  50. LCD_Write_DATA(0x00,0x00);
  51. LCD_Write_COM(0x2A);
  52. LCD_Write_DATA(0x00,0x00);
  53. LCD_Write_DATA(0x00,0x00);
  54. LCD_Write_DATA(0x00,0x00);
  55. LCD_Write_DATA(0x00,0xeF);
  56. LCD_Write_COM(0x2B);
  57. LCD_Write_DATA(0x00,0x00);
  58. LCD_Write_DATA(0x00,0x00);
  59. LCD_Write_DATA(0x00,0x01);
  60. LCD_Write_DATA(0x00,0x8F);
  61. LCD_Write_COM(0x29); //display on
  62. LCD_Write_COM(0x2C); //display on
  63. break;