-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error undefined #2
Comments
What type of Arduino do you have? This version was prepared for 3.5 display for Arduino Mega used with Arduino Mega. |
I fix code for Uno. You can try to test using: |
Hello! #include // Declare which fonts we will be using // Set the pins to the correct ones for your development shield void setup() // Setup the LCD void loop() // Clear the screen and draw the frame myGLCD.setColor(255, 0, 0); myGLCD.setColor(0, 0, 255); // Draw crosshairs // Draw sin-, cos- and tan-lines myGLCD.setColor(0,255,255); myGLCD.setColor(255,0,0); myGLCD.setColor(255,255,0); delay(2000); myGLCD.setColor(0,0,0); // Draw a moving sinewave delay(2000); // myGLCD.setColor(0,0,0); // Draw some filled rectangles delay(2000); // myGLCD.setColor(0,0,0); // Draw some filled, rounded rectangles delay(2000); // myGLCD.setColor(0,0,0); // Draw some filled circles delay(2000); // myGLCD.setColor(0,0,0); // Draw some lines in a pattern delay(2000); // myGLCD.setColor(0,0,0); // Draw some random circles delay(2000); // myGLCD.setColor(0,0,0); // Draw some random rectangles delay(2000); // myGLCD.setColor(0,0,0); // Draw some random rounded rectangles // myGLCD.setColor(0,0,0); for (int i=0; i<100; i++) delay(2000); // myGLCD.setColor(0,0,0); for (int i=0; i<10000; i++) delay(2000); myGLCD.setColor(255, 255, 255); myGLCD.setColor(0, 255, 0); delay (5000); But the code doesn't work. The error is UTFT_Demo_400x240.ino: In function 'void loop()': Why doesn't work? Can somebody help me? |
For me, the code successfully uploads! But I can not make it work. White screen! |
I got the following error, if I tried to define it, I get a lot more errors.
Using example, avr, 400*240
The text was updated successfully, but these errors were encountered: