setup()
This is the function that tells the arduino how to set its self up.
loop()
This is what the arduino is to do while it is running.
analogRead(pinnumber)
read an analog value (0 -> 1023) from the pinnumber given
Serial.print()
print ASCII to the serial
Serial.println()
Print ASCII to the serial port but also add a line break after
pinMode(pinnumber, mode)
pinnumber = the number of the digital pin on the arduino board.
mode = Can be ether 'INPUT' for receving data or 'OUTPUT' for sending data.
digitalRead(pinnumber)
pinnumber = the number of the digital pin on the arduino board.
No comments:
Post a Comment