Arduino学习笔记(3月11日)

Project const int ledpins[] = {2,3,4,5,6,7}; //定义每一个LED的针脚 const int wait=30;//等待时间(单位毫秒) void setup() { for(int led=0; led<6; led++) pinMode(ledpins[led],OUTPUT);//申明引脚为输出 } void loop() { f
相关文章
相关标签/搜索