USER_BUTTON depreciated

I’m re-visiting a design around a NUCLEO-FR401RE board, but the latest MBED OS doesn’t seem to support ‘USER_BUTTON’ to enable an input from the blue button (USER) on the board, and despite web searches I can’t find what it is now called.

I even used a voltmeter to checked all the pins on the board headers to see if this button was connected to any of the I/O pins, but nothing changed in response to pressing the blue button.

Any ideas?

Hello,

with MbedOS 6+ came some pins standardization and USER_BUTTON was renamed to BUTTON1. Here is definition for your board.

BR, Jan