Using the ST DISCO-L496AG STM32L496 joystick from Mbed?

How can I use the joystick on the ST DISCO-L496AG STM32L496 with mbed? The manual indicates that the joystick is connected to PI8. Yet reading DigitalIn joy1(PI_8) does not seem to get any input.

Hello,

according to Discovery kit with STM32L496AG MCU the connection looks like this

What does your code look like?

BR, Jan