![]() It can either be handled by a software routine in the sketch, using a digital pin for that, or as a "side effect" of hitting the Arduino's reset button, but the sketch has to correctly specify one or the other. The Reset function resets the controller chip, something that has do be done during startup of the screen. The backlight is either directly powered from Vcc or from a PWM pin (depending on whether it is PWM capable, or whether that line is even brought out to where you can connect to it). The TFT reset has nothing whatsoever to do with the backlight. #define LCD_RESET A4 // Can alternately just connect to Arduino's reset pin #define LCD_RD A0 // LCD Read goes to Analog 0 #define LCD_WR A1 // LCD Write goes to Analog 1 #define LCD_CD A2 // Command/Data goes to Analog 2 The adafruit TFTLCD library doesnt work with my display, but it says: #define LCD_CS A3 // Chip Select goes to Analog 3 If I define LCD_RESET 0, then the display stays white, so why is it optional? I'm using #include "TFTLCD.h" #include "TouchScreen.h" with examplesketch: #define LCD_CS A3 the sensorshield has sideconnectors Its only a testproject for a short TFT demonstration + one I2C sensor (therefore I need A4 and A5). My setup is: aruino + sensorshield v4 + TFT display. You won't be able to use the freed up pin anyway if you could, so I don't see the point. Since this is a shield, you can't remap the pins. ![]() I don't see how or even why you would want to connect the reset pin on the LCD to the reset pin of your Arduino.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |