This is a little change I added to use my Arduino R4 board. Instead of throwing an error if an unknown MCU is found, the code in _shield uses the standard Arduino IDE commands pinMode, digitalWrite and digitalRead. It is quite slow, my Arduino R4 is about 4 times slower than the Arduino UNO I tested. But with the change all boards with a standard Arduino port numbering can be supported.
Also, a R4 section is added to mcufriend_shield that uses the port macros of the R4 platform for write. This speeds up the display by a factor of 3 as compared to the generic code using the Arduino commands.
This is a little change I added to use my Arduino R4 board. Instead of throwing an error if an unknown MCU is found, the code in _shield uses the standard Arduino IDE commands pinMode, digitalWrite and digitalRead. It is quite slow, my Arduino R4 is about 4 times slower than the Arduino UNO I tested. But with the change all boards with a standard Arduino port numbering can be supported.
Also, a R4 section is added to mcufriend_shield that uses the port macros of the R4 platform for write. This speeds up the display by a factor of 3 as compared to the generic code using the Arduino commands.