top of page
Forum Posts
lil fluff
Nov 24, 2022
In Electronics/Circuitry
Was trying to mess with the Arduino nano and TFT screen and when adding includes for TFT.h, it throws a compile error: TFT.h(253,15,253,17)): error C0103: Variable 'DC' not found If I do anything more than just add the include it screams all sorts of things. my (alarmingly basic) code: #include <SPI.h>
#include <TFT.h>
#define CS 10
#define DC 9
#define RESET 8
TFT screen =TFT(CS, DC, RESET);
void setup(){
screen.begin();
screen.background(0,0,0);
screen.stroke(255,255,255);
screen.text("Hello, World!",0,0);
}
void loop(){
} and the errors:
0
2
171
lil fluff
More actions
bottom of page