ARDUINO COMMANDS Basic Arduino IDE Commands 1. pinMode(x, OUTPUT); Configure or assign the pin number x as an output pin. Where x is the digital pin number on the arduino device which you intend to use as an output. 2. pinMode(x, INPUT); Configure or assign the pin number x as an input pin. Where x is the digital pin number on the arduino device which you intend to use as an input. 3. digitalWrite(x, HIGH); Turn the digital pin number x ON or as HIGH. Where x is the digital pin number on the arduino device which you intend to turn ON. Note that turning it HIGH gives out a voltage of 5V at that digital pin. So this can be used to turn on or drive some devices connected at the pin e.g LED, activating relays for driving circuit, etc. 4. digitalWrite(x, LOW); Turn the digital pin number x OFF or as LOW. Where x is the digital pin number on the arduino device which you intend to turn OFF. Note that turning it LOW gives out a voltage of 0V at that digital...
Learn and Become Familiar with Various Technologies