刘亭默
New Member
Posts: 13
|
Post by 刘亭默 on Dec 27, 2020 8:19:04 GMT
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
digitalWrite(12, HIGH);
digitalWrite(11, HIGH);
delay(1000);
digitalWrite(12, HIGH);
digitalWrite(11, HIGH);
delay(1000);
digitalWrite(12, LOW);
digitalWrite(11, LOW);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}
|
|
刘亭默
New Member
Posts: 13
|
Post by 刘亭默 on Dec 27, 2020 8:20:39 GMT
|
|
刘亭默
New Member
Posts: 13
|
Post by 刘亭默 on Dec 27, 2020 8:24:12 GMT
|
|
|
Post by 邱老师 on Dec 29, 2020 1:15:14 GMT
小刘同学,你做的明明是椅子,怎么说是双闪灯?哈哈哈,莫非是没完成?
|
|
刘亭默
New Member
Posts: 13
|
Post by 刘亭默 on Feb 9, 2021 5:43:18 GMT
// 动态变量 volatile float mind_n__1;
// 主程序开始 void setup() { dfrobotRandomSeed(); digitalWrite(1, HIGH); delay(1000); digitalWrite(1, LOW); delay(1000); } void loop() { mind_n__1 = (random(1, 4+1)); if ((mind_n__1<2)) { digitalWrite(1, HIGH); } else { digitalWrite(1, LOW); } }
|
|
刘亭默
New Member
Posts: 13
|
Post by 刘亭默 on Feb 9, 2021 5:46:42 GMT
随机循环2 新增1个《开机提示》(灯闪一下)
|
|
刘亭默
New Member
Posts: 13
|
Post by 刘亭默 on Mar 7, 2021 8:25:40 GMT
口罩保存器
上体育课时,不需要佩戴口罩,很多同学把口罩折叠放在口袋,这很不科学,这时候需要把口罩保护好,防止污染,可以做一个器口罩保存器,让口罩变得干燥,同时又不会受到污染。
密封门,铁夹子,LED2(红,绿),日光灯1,风扇2,过滤器(空气)1,电池盒1,干湿检测器1。
|
|