Page 1 of 1

ILI 9488

Posted: Sat Mar 23, 2024 4:27 pm
by djcleckie
Hi

I am using a Nucleo F401RE and Arduino IDE 2.3.2.

I have several TFT displays. 2.2", 3.2" and 3.5"

My 2.2" and 3.2" displays use the ILI 9341 driver
#include "Adafruit_ILI9341.h"
and work fine with the F401RE board.

My 3.5" uses the ILI 9488 driver and when I compile for the F401RE
#include <ILI9488.h>
I get the error below.

C:\Users\djcle\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.7.1\cores\arduino/pins_arduino.h:143:38: error: invalid conversion from 'volatile uint32_t*' {aka 'volatile long unsigned int*'} to 'int32_t*' {aka 'long int*'} [-fpermissive]
143 | #define portOutputRegister(P) (&(P->ODR))
| ~^~~~~~~~~~
| |
| volatile uint32_t* {aka volatile long unsigned int*}

Now if I try compiling for a F103C series I don't get any compilation errors.

It also compiles and works with a nano though it is pretty slow.

Re: ILI 9488

Posted: Mon Mar 25, 2024 10:14 am
by fpiSTM
Hi which library you used ?
Issue is that the type used in the library is not correct to call portOutputRegister