eBoard ①⑧⑨
Written for SIA 2017/2018
lcd_debug.cpp
Go to the documentation of this file.
1 
5 #define EBOARD_DEBUG_MODE 0x0
6 #define EBOARD_I2C 0x1
8 #define EBOARD_LCD 0x1
10 #include <eBoard.h>
14 LCD lcd(board);
29 int main()
30 {
31  links.storePosition(40);
32  rechts.storePosition(200);
33  //lcd.changeID(0x3C);
34  board.sleep(1);
35  lcd.clear();
37  lcd.print(1,0,rechts.getPosition());
38  dBoard.action();
39  board.sleep(1);
40  lcd.changeBackground(true);
41  lcd.print(2,0,links.getPosition());
42  lcd.print(3,0,rechts.getPosition());
43  return 0;
44  }
This is the SoccerBoard ghost struct :D.
This is the AX12Servo ghost struct :D.
void storePosition(int pos, int speed=0x3FF)
This saves the Servo Position.
optVAL_t getPosition(void)
This "kind of" returns the Servo-Position.
void sleep(uint16_t t)
Say goodnight!
SoccerBoard board
the board object
Definition: lcd_debug.cpp:12
AX12Servo links(dBoard, 1)
left servo
AX12Servo rechts(dBoard, 2)
right servo
void changeBackground(bool newBackground=false)
changes the background of the display
This is the DynamixelBoard ghost struct :D.
int main()
Definition: lcd_debug.cpp:29
bool clear(void)
clears the LCD
void action(void)
will force every AX12Servo to drive to AX12Servo::storedPos with AX12Servo::storedSpeed ...
LCD lcd(board)
the lcd object
DynamixelBoard dBoard(board)
the dBoard object
void print(const char *data)
prints a string to the display
[I2C] [LCD] This is used to add support for OLED displays connected to the &#39;SoccerBoard&#39; ...
Definition: eagle_LCD.h:203