MIcoPython不支持UNO的板子,但找到了个arduino的python库看来要先用C++来亮灯了。
// 华尔兹闪灯试验 2024年1月22日星期一 下午7:16
int beng = 800;
int caca = 400;
int stop = 50;
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(beng);
digitalWrite(LED_BUILTIN, LOW);
delay(stop);
digitalWrite(LED_BUILTIN, HIGH);
delay(caca);
digitalWrite(LED_BUILTIN, LOW);
delay(stop);
digitalWrite(LED_BUILTIN, HIGH);
delay(caca);
digitalWrite(LED_BUILTIN, LOW);
delay(stop);
}