摘要: int LED = 18; void setup() { Serial.begin(115200); pinMode(LED, INPUT_PULLUP); } void loop() { if(digitalRead(LED)){ Serial.println("高电平"); }else{ Ser 阅读全文
posted @ 2022-01-20 17:21 盛世芳华 阅读(512) 评论(0) 推荐(0) 编辑