Reference   Language | Libraries | Comparison | Changes

drawDire(direction)

Description

A helper function for drawing a compass on the LCD screen

Parameters

direction: an int between 0 and 359, indicating where the compass should be pointing at. Typically it's one get from Robot.compassRead().

Returns

none

Examples

#include <ArduinoRobot.h>
void setup(){
  Robot.begin();
  Robot.readyLCD();//Initialize the LCD module
}
void loop(){
  int dire=Robot.compassRead();
  Robot.drawDire(dire);
}

See also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.