Perlatecnica/X-Nucleo-IKS4A1_mbedOS — reverse-engineered prompt

Reverse engineered prompt

GitHub

I have an STM32 Nucleo board with the X NUCLEO IKS4A1 sensor expansion board, and I want a simple mbed OS firmware project in C that proves the sensors are working.

Please build a clean example that sets up I2C, initializes the supported sensors, and prints useful readings to the serial monitor every second. It should show acceleration and gyroscope values from the LSM6DSV16X, pressure and temperature from the LPS22DF, and temperature from the STTS22H. Make the code easy to understand, with clear names and comments, so someone can use it as a starter project for this board.

If a sensor is not found, the program should not crash. It should print a friendly message and keep trying the others. Please include any needed setup notes in the README, like wiring, serial baud rate, and how to build and flash it. Look up the current ST and mbed docs online if you need to.

Want more depth? Deep Reverse