摘要:
外部中断的三个要素 1.PIN 也就是GPIO 2.中断服务函数 3.触发方式 例子 初始化 pinMode(0, INPUT_PULLUP); attachInterrupt(0, PinIntEvent, FALLING); 中断服务函数 void PinIntEvent() { Serial. 阅读全文
posted @ 2022-03-02 22:21
寥若辰星
阅读(1578)
评论(0)
推荐(0)
摘要:
#include <Arduino.h> void setup() { // put your setup code here, to run once: pinMode(2, OUTPUT); } void loop() { // put your main code here, to run r 阅读全文
posted @ 2022-03-02 21:14
寥若辰星
阅读(108)
评论(0)
推荐(0)

浙公网安备 33010602011771号