arduino 引脚用法

数字引脚:

pinMode(pin, mode)

digitalWrite(pin,value)

int digitalRead(pin)

模拟引脚:

int analogRead(pin)   pin 0-5

analogWrite(pin,value)  pin 3,5,6, ,10,11  (数字PWM引脚)

扩展I/O

shiftOut(dataPin, clockPin, bitOrder,value) SPI 外部扩展IO

猜你喜欢

转载自blog.csdn.net/iccome/article/details/68950592