Skip to content
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

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

Open
IOS2000 opened this issue May 9, 2021 · 0 comments
Open

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

IOS2000 opened this issue May 9, 2021 · 0 comments

Comments

@IOS2000
Copy link

IOS2000 commented May 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant