Smally modified Thingsquare code for STM32W108CB microcontroller