Hi shankari,
You might start from a sample project/code, for example the FP-AI-SENSING1 function pack, that supports also projects running on the Sensortile.box.
You can find some examples in \Projects\STM32L4R9ZI-SensorTile.box\Applications\SENSING1 folder.
In particular, middleware libraries generated thanks to STM32CubeMx extension called X-CUBE-AI featuring example implementation of neural networks for real-time:
- human activity recognition (HAR)
- acoustic scene classification (ASC) --> this might be of your interest
You need these files:
The green LED can be simply managed toggling the proper GPIO (e.g. the PF2 for the green led), as shown in the schematic below.
-Eleon