ILI 9488

Post here first, or if you can't find a relevant section!
Post Reply
djcleckie
Posts: 1
Joined: Tue Mar 19, 2024 5:09 pm

ILI 9488

Post 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.
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: ILI 9488

Post by fpiSTM »

Hi which library you used ?
Issue is that the type used in the library is not correct to call portOutputRegister
Post Reply

Return to “General discussion”