STEVAL-EDUKIT01 inverted pendulum STM32 code configured as SPI slave for use with external controller