A modified demo of stm32