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

Compilation error for Teensy 4 - easy fix #20

Open
hellmutbrudny opened this issue Nov 2, 2021 · 0 comments
Open

Compilation error for Teensy 4 - easy fix #20

hellmutbrudny opened this issue Nov 2, 2021 · 0 comments

Comments

@hellmutbrudny
Copy link

I was playing with this library (thanks to the author and all contributors) and Teensy 4.0 and found these issue:

cannot convert 'volatile uint32_t* {aka volatile long unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment
wherever portOutputRegister() is used.

I simply replaced in "ILI9488.h"
#if defined (__AVR__) || defined(TEENSYDUINO)
with
#if defined (__IMXRT1062__)
uint32_t mySPCR;
volatile uint32_t *mosiport, *clkport, *dcport, *rsport, *csport;
int32_t _cs, _dc, _rst, _mosi, _miso, _sclk;
uint32_t mosipinmask, clkpinmask, cspinmask, dcpinmask;
#elif defined (__AVR__) || defined(TEENSYDUINO)

Putting here because maybe it will save some time for someone or you guys can consider using it.
Best regards!

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