7
In this example we need to connect a TFT LCD to our Esplora, here is a picture of the TFT
The code is a basic example, simply toggling between 2 background colours
Code
[codesyntax lang=”cpp”]
#include <TFT.h> #include <SPI.h> bool black = false; void setup() { EsploraTFT.begin(); } void loop() { if (black) { EsploraTFT.background(255, 255, 255); black = false; } else { EsploraTFT.background(0, 0, 0); black = true; } delay(1000); }
[/codesyntax]
Links
Esplora Game programming board Leonardo upgrade Version Atmega32U4
1.8 Inch TFT LCD Expansion Support Micro SD Special-purpose For Arduino Esplora