Saturday, May 1, 2010

Arduino - Key Words

Here are some key words used in the arduino environment:

analogRead() - Reads the value from the specified analog pin.

digital Read() - Reads the value from a specified digital pin, either HIGH or LOW.

loop() - Does precisely what its name suggests, and loops consecutively.

pinMode() - Configures the specified pin to behave either as an input or an output.

Serial.print() - Prints data to the serial port as human-readable ASCII text.

Serial.println() - Prints data to the serial port as human-readable ASCII text followed by a carriage return character (ASCII 13, or '\r') and a newline character (ASCII 10, or '\n').

setup() - initializes variables, pin modes, starts using libraries, etc.

No comments:

Post a Comment