怎么编写ARM中mbed的程序

请问如何编写一个程序使得一个电动风扇转速随着温度而变化,本人初学者,几乎小白,如果违规请轻

https://blog.csdn.net/piaoyaofenfanl/article/details/80158965