-
Notifications
You must be signed in to change notification settings - Fork 92
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
White screen issue with samd21 #18
Comments
Which example? This library comes with 3 examples. 2 of them do not control a display at all. 1 does, and the library it uses to do so is not compatible with those boards. |
Touch test example. It seems that the library touched() function, which has an Update() function, its SPI calls interfere with the display and render it white. |
Are you going to show the complete code to reproduce this problem? |
Here is a complete to reproduce the problem: #include "wiring_private.h" XPT2046_Touchscreen ts(12, 10); #if defined(ARDUINO_SAMD_ZERO) && defined(SERIAL_PORT_USBVIRTUAL) void setup() { ts.begin(); display.InitLCD(3); } float speed = 0; //If ts.touched() is commented out, you will see the counter properly updating on the screen, delay(1000); display.setBackColor(0x0000); int ones = (int)speed % 10; if (OldOnes != ones ) }` |
TFT9341 library Im using is this one https://github.com/pantata/TFT9341SPI |
Description
Using the example provided, I get white screen shortly after calling if (ts.touched()) on samd21 based boards(feather m0, arduino zero...)
Steps To Reproduce Problem
run the example code.
Hardware & Software
Board :feather m0
The text was updated successfully, but these errors were encountered: