Sunday, February 28, 2010

Arduino Keywords

setup:
sets everything up.

loop:
an infinite loop were your main programe goes.

Serial.print:
prints text to screen with out creating a new line

Serial.println:
prints text to screen and creates a new line.

delay(x):
delays the programe for "x" amount of milliseconds.

pinMode():
sets the pin to input or output.

digitalRead()
:
returns the current (or something like that) of the pin given.

No comments:

Post a Comment