Reference for Wiring version 0027+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name

. (dot)

Examples
void setup() {
  Serial.begin(9600);  // calls the begin() method for Serial
  Serial.println("Hello world!);  // calls the println method for Serial
}

void loop() {

}
Description Provides access to an object's methods and data. An object is an instance of a class or datatype and contains is a grouping of methods (object functions) and data (object variables and constants). The dot operator directs the program to the information encapsulated within an object.
Syntax
object.method()object.data
Parameters
object the object you want to access
method() method encapsulated in the object
data variable or constant encapsulated in the object
Usage Application
Updated on September 16, 2010 09:15:25pm PDT

Creative Commons License