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

BUG: TFT_RST_OFF defines incorrect register with ArduinoMega2560 #7

Open
dimonik opened this issue Oct 10, 2016 · 0 comments
Open

BUG: TFT_RST_OFF defines incorrect register with ArduinoMega2560 #7

dimonik opened this issue Oct 10, 2016 · 0 comments

Comments

@dimonik
Copy link

dimonik commented Oct 10, 2016

BUG: TFT_RST_OFF defines incorrect register with ArduinoMega2560

how it is now:

define TFT_RST_OFF {DDRD |= 0x10;PORTD |= 0x10;}

define TFT_RST_ON {DDRD |= 0x10;PORTD &=~ 0x10;}

how it should be for ArduinoMega2560:

define TFT_RST_OFF {DDRG |= 0x10;PORTG |= 0x10;}

define TFT_RST_ON {DDRG |= 0x10;PORTG &=~ 0x10;}

So, Port_G is what to be used with Mega2560 if we want same arduino_digital_pin_4.

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