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.

55 lines
1.2KB

  1. /*
  2. Explain the minimal setup and how to use instances...
  3. */
  4. #include <SPI.h>
  5. #include <RA8875.h>
  6. //#include "fonts/akashi_36.c"////akashi_36
  7. /*
  8. ESP8266----------------
  9. MOSI: D7 (13)
  10. MISO: D6 (12)
  11. SCK: D5 (14)
  12. CS_DISP D0 (16)
  13. SDA: D2 (4)
  14. SCL: D1 (3)
  15. */
  16. #define RA8875_CS 16
  17. RA8875 tft = RA8875(RA8875_CS);
  18. void setup()
  19. {
  20. Serial.begin(115200);
  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. }