【嵌入式】arduino常用函数

IO函数

  设置引脚  pinMode(0-13,INPUT/OUTPUT/INPUT_PULLUP)

  设置输出  digitalWrite(0-13,HIGH/LOW)

  读取引脚  digitalRead(0-13) return HIGH/LOW

  读取Analog引脚  analogRead(A0-5) return 0·1023(0~5V)

 

时间函数

  等待毫秒  delay(int)

  等待微秒  delayMicroseconds(int)

 

something else:

Serial:https://blog.csdn.net/weibo1230123/article/details/80042171

posted @ 2020-12-06 00:00  海底淤泥  阅读(352)  评论(0编辑  收藏  举报