摘要:上期我们学会了I/O端口的输出操作,也就是通过I/O端口控制LED的亮灭与亮度。这次我们来学习I/O端口的输入操作,也就是通过I/O端口读取微动开关按键的状态,然后再写一段程序,通过按键来控制LED,看一看按键控制都有哪些特性和编程技巧。按照之前的惯例,讲解一个新的功能要从硬件电路分析、程序分析和下载HEX观察实验效果这3个方面展开。现在我们介绍微动开关按键的功能,先来看一下硬件部分。
关键词:stm32 按键控制 程序分析 编程技巧 微动开关
单位:洋桃电子
注:因版权方要求,不能公开全文,如需全文,请咨询杂志社
相关期刊
ITS通讯 Advances in Atmospheric Sciences Science China Earth Sciences Journal of Systems Science and Complexity Science China Mathematics Science China Chemistry Chinese Annals of Mathematics,Series B Research in Astronomy and Astrophysics Transactions of Nonferrous Metals Society of China Journal of Systems Engineering and Electronics相关范文
sts教育论文