初学Arduino——按钮控制(四)

执行动做: 采用两个按钮控制,按下一个按钮时:led变为呼吸灯(先由灭到亮,再从亮到灭);git                                 当按下另一个按钮并松开时,led灯瞬间灭掉。oop int led = 3; int button1 = 5; int button2 = 8; void setup() { // put your setup code here,
相关文章
相关标签/搜索