The Teensy T4 (__IMXRT1062__) port registers need to be 32 bits unlike the Teensy 3.x which are 8 bits.
adafruit_ili9341 and adafruit_st7735 libraries graphic test
Removed compiler warning
that PROGMEM was previously defined. So undefine it first...
Note: Thought of simply doing nothing here
(do neither the #undef nor the #define).
But that gives compiler error
Teensy T4 - Make Bit Bang version work.
With T4, the Port/Set registers are masks not single value.
So need to setup those class variables:
Also found that bitbang of T4, was too fast for display, so put in same slow
down that ESP32 has, which gets the clock down to mayby 12.5mhz
Tried these changes out with both:
adafruit_ili9341 and adafruit_st7735 libraries graphic test
Update comments
There were a couple of compile issus when you are trying to use a different board which requires you not to use fast pinio. In particular Robotis OpenCM9.04 as well as the OpenCR 1.0 boards.
They are STM32 based __arm__ boards but do not have the support for setting/clearing IO pins using memory mapped access to one location.
First thing I ran into was the code in the #else casue was using
#undefine
which is not valid, should be #undef
Second issue is once this define was undefined, the #defines for SPI_CS_HIGH
and SPI_CS_LOW did not compile as there was no ; at the end of the digitalWrite.
Probably worked earlier until somone put this statement into a {} pair