Because my toothbrush has the bluetooth low energy, since it is a totally useless thing, I need do do something with it.
The toothbrush vibrates each 30seconds to tell you that is time to change your mouth sector.
My idea to create something that tell you your progress, and whitch sector you should clean.
I tested this project using an NUCLEO-F401RE with an X-NUCLEO-IDB05A1 BLE expansion board.
I connect 3 colored leds to the pins: PB_8 (Red), PB_9 (Yellow),PA_10 (green).
You can change the pins changing the PinConfiguration.h file, but note that the brightness is controlled using a PWM signal.
This project use some c++17 feature,because I started in 2019. For this reason you have to use a custom build profile, that enable c++17 for GCC Arm.
To do you have to run:
mbed compile --profile mbed-os/tools/profiles/develop.json --profile enableCpp17.json
This project was develop during a Open Source Saturday