![]() |
eBoard ๐
โ โงโจ
Written for SIA 2017/2018
|
[COPY&PASTE] This is the SoccerBoard ghost struct :D More...
#include <eagle_SoccerBoard.h>
Public Member Functions | |
SoccerBoard (void) | |
The constructor. More... | |
void | motor (uint8_t id, int16_t val) |
As requested this is the ultimate shortcut ;) More... | |
void | motorsOff (void) |
As requested this is the shortcut to disable the main motor. More... | |
void | power (optVAL_t id, bool state) |
Set the state of a certain D-pin. More... | |
void | powerOn (optVAL_t id) |
Set the state of a certain D-pin to HIGH. More... | |
void | powerOff (optVAL_t id) |
Set the state of a certain D-pin to LOW. More... | |
void | sleep (uint16_t t) |
Say goodnight! More... | |
void | msleep (uint16_t t) |
Say goodnight! More... | |
bool | digital (optVAL_t id) |
Reads a digital value from a pin. More... | |
optVAL_t | analog (optVAL_t id) |
Reads an analog value from a pin. More... | |
void | reset (void) |
Resets the Soccerboard if EBOARD_USE_RESET is set to true. More... | |
[COPY&PASTE] This is the SoccerBoard ghost struct :D
[COPY&PASTE] You can use this class like this:
Definition at line 45 of file eagle_SoccerBoard.h.
|
inline |
The constructor.
Reads an analog value from a pin.
id | The id of the pin |
Definition at line 256 of file eagle_SoccerBoard.h.
References readPin().
|
inline |
Reads a digital value from a pin.
id | The id of the pin |
Definition at line 255 of file eagle_SoccerBoard.h.
References readPin().
void SoccerBoard::motor | ( | uint8_t | id, |
int16_t | val | ||
) |
As requested this is the ultimate shortcut ;)
id | set to |
val | the value you wan't to send
|
void SoccerBoard::motorsOff | ( | void | ) |
As requested this is the shortcut to disable the main motor.
|
inline |
Say goodnight!
t | time in milliseconds the UNO gets to sleep ;) |
Definition at line 254 of file eagle_SoccerBoard.h.
Referenced by main().
|
inline |
Set the state of a certain D-pin.
id | The id of the pin |
state | The state the pin should have |
Definition at line 250 of file eagle_SoccerBoard.h.
References writePin().
Referenced by powerOff(), and powerOn().
|
inline |
Set the state of a certain D-pin to LOW.
id | The id of the pin |
Definition at line 252 of file eagle_SoccerBoard.h.
References power().
|
inline |
Set the state of a certain D-pin to HIGH.
id | The id of the pin |
Definition at line 251 of file eagle_SoccerBoard.h.
References power().
|
inline |
Resets the Soccerboard if EBOARD_USE_RESET is set to true.
|
inline |
Say goodnight!
t | time in seconds the UNO gets to sleep ;) |
Definition at line 253 of file eagle_SoccerBoard.h.
Referenced by main().