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.

initlcd.h 1.2KB

3 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. case ILI9481:
  2. LCD_Write_COM(0x11);
  3. delay(20);
  4. LCD_Write_COM(0xD0);
  5. LCD_Write_DATA(0x07);
  6. LCD_Write_DATA(0x42);
  7. LCD_Write_DATA(0x18);
  8. LCD_Write_COM(0xD1);
  9. LCD_Write_DATA(0x00);
  10. LCD_Write_DATA(0x07);
  11. LCD_Write_DATA(0x10);
  12. LCD_Write_COM(0xD2);
  13. LCD_Write_DATA(0x01);
  14. LCD_Write_DATA(0x02);
  15. LCD_Write_COM(0xC0);
  16. LCD_Write_DATA(0x10);
  17. LCD_Write_DATA(0x3B);
  18. LCD_Write_DATA(0x00);
  19. LCD_Write_DATA(0x02);
  20. LCD_Write_DATA(0x11);
  21. LCD_Write_COM(0xC5);
  22. LCD_Write_DATA(0x03);
  23. LCD_Write_COM(0xC8);
  24. LCD_Write_DATA(0x00);
  25. LCD_Write_DATA(0x32);
  26. LCD_Write_DATA(0x36);
  27. LCD_Write_DATA(0x45);
  28. LCD_Write_DATA(0x06);
  29. LCD_Write_DATA(0x16);
  30. LCD_Write_DATA(0x37);
  31. LCD_Write_DATA(0x75);
  32. LCD_Write_DATA(0x77);
  33. LCD_Write_DATA(0x54);
  34. LCD_Write_DATA(0x0C);
  35. LCD_Write_DATA(0x00);
  36. LCD_Write_COM(0x36);
  37. LCD_Write_DATA(0x0A);
  38. LCD_Write_COM(0x3A);
  39. LCD_Write_DATA(0x55);
  40. LCD_Write_COM(0x2A);
  41. LCD_Write_DATA(0x00);
  42. LCD_Write_DATA(0x00);
  43. LCD_Write_DATA(0x01);
  44. LCD_Write_DATA(0x3F);
  45. LCD_Write_COM(0x2B);
  46. LCD_Write_DATA(0x00);
  47. LCD_Write_DATA(0x00);
  48. LCD_Write_DATA(0x01);
  49. LCD_Write_DATA(0xE0);
  50. delay(120);
  51. LCD_Write_COM(0x29);
  52. break;