// If we are using the hardware SPI interface, these are the pins (for future ref)#define sclk 13#define mosi 11// You can also just connect the reset pin to +5V (we do a software reset)#define rst 8// these pins are required#define cs 10#define dc 9// Color definitions#define BLACK 0x0000#define BLUE 0x001F#define RED 0xF800#define GREEN 0x07E0#define CYAN 0x07FF#define MAGENTA 0xF81F#define YELLOW 0xFFE0 #define WHITE 0xFFFF// to draw images from the SD card, we will share the hardware SPI interfaceST7735 tft = ST7735(cs, dc, rst);// For Arduino Uno/Duemilanove, etc// connect the SD card with MOSI going to pin 11, MISO going to pin 12 and SCK going to pin 13 (standard)// Then pin 4 goes to CS (or whatever you have set up)#define SD_CS 4 // Set the chip select line to whatever you use (4 doesnt conflict with the library)
ST7735 tft = ST7735(cs, dc, rst);
ST7735 tft(cs, dc, rst);
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16