Arduino STM32 ILI9341 touch not working

Hello everyone,

My setup is as follows:

  • STM32duino Official Core v2.0.0
  • Arduino 1.8.13
  • F411 BlackPill
  • LVGL 8.0.2
  • ILI9341 with touch on SPI1

I load the supplied LVGL_Arduino example and change LV_COLOR_DEPTH to 16 and specify my screen width and height. I modify the example so that the “Hello Arduino” message is displayed.

The example compiles and I upload it to the F4111, which runs and displays the label. However, when I activate the serial monitor, nothing is displayed when I touch the display.

The touch screen is working which I verified using the supplied Keypad_240x320 example from the TFT_sSPI library.

What am I missing? :slight_smile: :wink:

I also added the lv_example_btn_1() example from the documentation with the following in event_handler() for some visual feedback:

digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));

The buttons are displayed, but the LED does nothing when I touch either of the buttons.

In the serial terminal, only the following is displayed:

Hello Arduino! (V8.0.X)
I am LVGL_Arduino
Setup done

:confused: