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.

benchmarks.ino 568B

3 years ago
12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. A benchmark test - measure the speed of many drawing functions of RA8875 library at any rotation
  3. Open your serial monitor for results
  4. */
  5. #include <SPI.h>
  6. #include <RA8875.h>
  7. #define DELAY_BETWEEN 500
  8. /*
  9. ESP8266----------------
  10. MOSI: D7 (13)
  11. MISO: D6 (12)
  12. SCK: D5 (14)
  13. CS_DISP D0 (16)
  14. SDA: D2 (4)
  15. SCL: D1 (3)
  16. */
  17. #define RA8875_CS 16
  18. RA8875 tft = RA8875(RA8875_CS);
  19. void setup() {
  20. Serial.begin(115200);
  21. tft.begin(RA8875_800x480);
  22. }
  23. uint8_t rot = 0;
  24. void loop(void) {
  25. test(rot);
  26. rot++;
  27. if (rot > 3) rot = 0;
  28. }