adafruit / TFTLCD-Library

Arduino library for 8-bit TFT LCDs such as ILI9325, ILI9328, etc
http://www.ladyada.net/products/tfttouchbreakout/ and http://www.ladyada.net/products/tfttouchshield
327 stars 262 forks source link

How to fix writeRegister16(ILI9341_VCOMCONTROL1, 0x2B2B); #52

Open IOS2000 opened 3 years ago

IOS2000 commented 3 years ago

Hi I'm new for arduino and I use arduino mega 2560 with tftlcd 2.4 with shield but after I test the program this code is show.

C:\Users\Administrator\Documents\Arduino\libraries\TFTLCD-Library-1.0.3\Adafruit_TFTLCD.cpp:933:0: warning: "read8" redefined

define read8(x) x = read8fn()

In file included from C:\Users\Administrator\Documents\Arduino\libraries\TFTLCD-Library-1.0.3\Adafruit_TFTLCD.cpp:17:0: C:\Users\Administrator\Documents\Arduino\libraries\TFTLCD-Library-1.0.3\pin_magic.h:230:0: note: this is the location of the previous definition

define read8 read8inline

C:\Users\Administrator\Documents\Arduino\libraries\TFTLCD-Library-1.0.3\Adafruit_TFTLCD.cpp: In member function 'void Adafruit_TFTLCD::begin(uint16_t)': C:\Users\Administrator\Documents\Arduino\libraries\TFTLCD-Library-1.0.3\pin_magic.h:533:12: warning: large integer implicitly truncated to unsigned type [-Woverflow] lo = (d); \ ^ C:\Users\Administrator\Documents\Arduino\libraries\TFTLCD-Library-1.0.3\pin_magic.h:234:25: note: in expansion of macro 'writeRegister16inline'

define writeRegister16 writeRegister16inline

                     ^~~~~~~~~~~~~~~~~~~~~

C:\Users\Administrator\Documents\Arduino\libraries\TFTLCD-Library-1.0.3\Adafruit_TFTLCD.cpp:352:5: note: in expansion of macro 'writeRegister16' writeRegister16(ILI9341_VCOMCONTROL1, 0x2B2B); ^~~~~~~

And it can still upload to board but the screen not show anything. Please ask for advice.