Pinmode Arduino Meaning Code Example


Example 1: arduino pinmode

void setup() {   pinMode(13, OUTPUT);    // sets the digital pin 13 as output }  void loop() {   digitalWrite(13, HIGH); // sets the digital pin 13 on   delay(1000);            // waits for a second   digitalWrite(13, LOW);  // sets the digital pin 13 off   delay(1000);            // waits for a second }

Example 2: arduino pinMode

pinMode(Pin_number, State); ex: pinMode(2, HIGH);

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable