![]() |
Pervasive Displays Library Suite - Reference Manual 9.0.8
Library for Pervasive Displays e-paper screens, extension boards and development kits
|
Example of features for basic edition. More...
Classes | |
struct | coordinates_s |
Functions | |
bool | checkWinnerPlayer (uint8_t player) |
Check whether palyer is winner. | |
void | drawWinnerPlayer (uint8_t player) |
Draw winning line, column or diagonal. | |
uint8_t | checkWinner () |
Check the winner. | |
void | drawMovePlayer (coordinates_s coordinates, uint8_t player) |
Display the move of player. | |
void | moveMCU () |
Let the MCU play. | |
bool | checkHuman (coordinates_s &coordinates) |
Check human play. | |
void | printBoard () |
Print board on serial. | |
void | playGame () |
Play the game. | |
void | moveHuman () |
Let the human play. | |
void | resetGame () |
Reset the game. | |
void | drawStartScreen () |
Draw start screen. | |
void | drawGameScreen () |
Draw empty board. | |
void | drawGameOverScreen () |
Draw end of game. | |
uint8_t | getBoard (coordinates_s coordinates) |
Get board cell content. | |
bool | setBoard (coordinates_s coordinates, uint8_t player) |
Set board cell content to player. | |
void | displayCenteredText (uint16_t x0, uint16_t y0, STRING_CONST_TYPE text, uint16_t colour) |
Display text centered on coordinates. | |
void | setup () |
Setup. | |
void | loop () |
Loop, empty. | |
Example of features for basic edition.
Project Pervasive Displays Library Suite
Based on highView technology
bool checkHuman | ( | coordinates_s & | coordinates | ) |
Check human play.
coordinates | coordinates of the cell to block |
uint8_t checkWinner | ( | ) |
Check the winner.
bool checkWinnerPlayer | ( | uint8_t | player | ) |
Check whether palyer is winner.
player | player number |
void displayCenteredText | ( | uint16_t | x0, |
uint16_t | y0, | ||
STRING_CONST_TYPE | text, | ||
uint16_t | colour ) |
Display text centered on coordinates.
x0 | x coordinate |
y0 | y coordinate |
text | text |
colour | colour |
void drawMovePlayer | ( | coordinates_s | coordinates, |
uint8_t | player ) |
Display the move of player.
coordinates | move coordinates |
player | player number |
void drawWinnerPlayer | ( | uint8_t | player | ) |
Draw winning line, column or diagonal.
player | player number |
uint8_t getBoard | ( | coordinates_s | coordinates | ) |
Get board cell content.
coordinates | coordinates i j of cell |
bool setBoard | ( | coordinates_s | coordinates, |
uint8_t | player ) |
Set board cell content to player.
coordinates | coordinates i j of cell |
player | player number |