eBoard ๐Ÿ‰  โ‘ โ‘งโ‘จ
Written for SIA 2017/2018
lcd_debug.cpp
Go to the documentation of this file.
1 
5 #define EBOARD_I2C 0x1
6 #define EBOARD_LCD 0x1
8 #include <eBoard.h>
12 LCD lcd(board);
27 int main()
28 {
29  links.storePosition(40);
30  rechts.storePosition(200);
31  //lcd.changeID(0x3C);
32  board.sleep(1);
33  lcd.clear();
35  lcd.print(1,0,rechts.getPosition());
36  dBoard.action();
37  board.sleep(1);
38  lcd.changeBackground(true);
39  lcd.print(2,0,links.getPosition());
40  lcd.print(3,0,rechts.getPosition());
41  return 0;
42  }
[COPY&PASTE] This is the SoccerBoard ghost struct :D
Definition: eBoard.h:2766
[COPY&PASTE] This is the AX12Servo ghost struct :D
Definition: eBoard.h:3086
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:10
AX12Servo links(dBoard, 1)
left servo
AX12Servo rechts(dBoard, 2)
right servo
void changeBackground(bool newBackground=false)
changes the background of the display
[COPY&PASTE] This is the DynamixelBoard ghost struct :D
Definition: eBoard.h:3258
int main()
Definition: lcd_debug.cpp:27
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: eBoard.h:3904