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.

54 lines
1.1KB

  1. /*
  2. Explain the minimal setup and how to use instances...
  3. */
  4. #include "RA8875.h"
  5. //#include "fonts/akashi_36.c"////akashi_36
  6. /*
  7. Particle Photon Pinouts
  8. CLK: A3
  9. MOSI: A5
  10. MISO: A4
  11. CS: A2
  12. INT: ANY?
  13. SDA: D0
  14. SCL: D1
  15. */
  16. #define RA8875_CS A2
  17. RA8875 tft = RA8875(RA8875_CS);
  18. void setup()
  19. {
  20. Serial.begin(9600);
  21. //long unsigned debug_start = millis ();
  22. //while (!Serial && ((millis () - debug_start) <= 5000)) ;
  23. Serial.println("\nRA8875 start");
  24. /*
  25. If you have an Adafruit RA8875 board + display choose:
  26. Adafruit_480x272 , Adafruit_800x480
  27. If you have any other display you have to choose:
  28. RA8875_480x272 , RA8875_800x480
  29. */
  30. tft.begin(RA8875_800x480);
  31. /*
  32. By default the library init display at 16bit color depth but
  33. you can optionally force the display to work at 8 bit:
  34. tft.begin(RA8875_480x272,8);//force 8bit color depth
  35. */
  36. //Now that board it's inited you can use any draw or text command:
  37. //tft.setFont(&akashi_36);//minipixel //fluide_caps
  38. //tft.setTextColor(RA8875_WHITE);//background transparent!!!
  39. //tft.setFontScale(3);
  40. tft.print("SUMOTOY");//NQW
  41. }
  42. void loop()
  43. {
  44. }