/* 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 #define RA8875_RESET 9//any pin or nothing! #if defined(NEEDS_SET_MODULE)//Energia, this case is for stellaris/tiva RA8875 tft = RA8875(3);//select SPI module 3 /* for module 3 (stellaris) SCLK: PD_0 MOSI: PD_3 MISO: PD_2 SS: PD_1 */ #endif 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; }