键盘扫描
这是我同学给我的程序 ,不是我本人写的,我试了程序没问题,绝对能用,特意上传,不要分的,希望能给学习MCU编程的带来帮助
听说呼吸灯是很久以前的事情了,那时候刚刚学习51单片机,没有单片机的基础。后来在网上看到了一个呼吸灯的电路图,甚是复杂,根本看不懂,无奈之下放弃了呼吸灯的制作。在接触了STM32后,发现呼吸灯还是比较
这是一个关于STM32的程序,可供初学者学习参考。
STM32例子程序
我们知道在51单片机中,通过扫描某个口的电平高低得知那个按键按下,比如,控制两行4列,假如让P1=0xCf;低位都置1 (pb0-pb3),pb4-pb5置0;然后我们就扫描P1口就行了,如果有按键被
通过向串口1发送数据,主程序停止,产生中断,可以控制LED灯的闪烁模式,最终会退回主程序
stm32多路ADC采集程序, 使用了DMA方式。该测试程序使用了3路ADC分别是PA4,PA6,PA7。
适合初学者进行操作
基于STM32控制电机程序