digitalWrite

写数字引脚


语法
 void digitalWrite(uint8 pin, uint8 value)


参数


返回值


示例
void setup() {
  pinMode(LED_BUILTIN, OUTPUT);      
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);  
  delay(1000);                         
  digitalWrite(LED_BUILTIN, LOW);    
  delay(1000);                        
}