/* A benchmark test - measure the speed of many drawing functions of RA8875 library at any rotation Open your serial monitor for results */ #include #include #define DELAY_BETWEEN 500 /* Teensy3.x and Arduino's You are using 4 wire SPI here, so: MOSI: 11//Teensy3.x MISO: 12//Teensy3.x SCK: 13//Teensy3.x the rest of pin below: */ #define RA8875_CS 10 #define RA8875_RESET 9 /* DUE can use 4,10 or 52( or 53? don't remember) */ RA8875 tft = RA8875(RA8875_CS, RA8875_RESET); void setup() { Serial.begin(38400); long unsigned debug_start = millis (); while (!Serial && ((millis () - debug_start) <= 5000)) ; tft.begin(RA8875_800x480); } uint8_t rot = 0; void loop(void) { test(rot); rot++; if (rot > 3) rot = 0; }