Hardware Reference
In-Depth Information
Robot.robotNameRead(container);
In the following snippet, container is a char array and stores the result of
the query.
char container[8];
Robot.robotNameRead(container);
Serial.println(container);
To tell the Arduino Robot your name, use userNameWrite() :
Robot.userNameWrite(name);
The name parameter is a string and can be up to eight characters. As with the
robot's name, the user's name can be retrieved using userNameRead() :
Robot.userNameRead(container);
The container parameter is a char array.
There are two more things the Arduino Robot can read and write—the city
name and the country name:
Robot.cityNameWrite(city);
Robot.cityNameRead(container);
Robot.countryNameWrite(country);
Robot.countryNameRead(container);
As with the previous functions, the write functions take strings, and the read
functions require an 8-byte char array.
LCD Screen
The Arduino Robot control board has a connector for a TFT screen (the same
screen as used on the Arduino Esplora). The Arduino Robot also has advanced
functions to make the most of the screen.
To use the TFT screen, you must i rst call beginTFT() :
Robot.beginTFT();
Robot.beginTFT(foreground, background);
By default, if called without any parameters, the TFT screen is coni gured
with black as a background color and white as a foreground color. This can be
changed by specifying the colors when calling beginTFT() . Valid colors are
BLACK , BLUE , RED , GREEN , CYAN , MAGENTA , YELLOW , and WHITE .
The TFT screen module also contains a micro-SD card slot, and to activate
it, use beginSD() :
Robot.beginSD();
 
Search WWH ::




Custom Search