Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed ll16j23s_test_docs
SnakeEngine Class Reference
#include <SnakeEngine.h>
Public Member Functions | |
| void | menu1_init (Gamepad &pad, N5110 &lcd) |
| Initialises menu 1. | |
| void | menu1_select (Gamepad &pad, N5110 &lcd, FXOS8700CQ &mag) |
| Controls selection of options in menu 1. | |
| void | menu2_select (Gamepad &pad, N5110 &lcd, FXOS8700CQ &mag) |
| Controls selection of options in menu 2. | |
| void | game_run (Gamepad &pad, N5110 &lcd) |
| Runs game. | |
| void | death_select (Gamepad &pad, N5110 &lcd, FXOS8700CQ &mag) |
| Controls selection of options in death menu. | |
| void | contrast (Gamepad &pad, N5110 &lcd_) |
| Reads pot2 and controls contrast accordingly. | |
Detailed Description
- Engine that controls the mechanics of the snake game
- Date:
- May 2020
- Version:
- V1.0
Definition at line 19 of file SnakeEngine.h.
Member Function Documentation
| void contrast | ( | Gamepad & | pad, |
| N5110 & | lcd_ | ||
| ) |
Reads pot2 and controls contrast accordingly.
- Parameters:
-
Gamepad LCD
Definition at line 325 of file SnakeEngine.cpp.
| void death_select | ( | Gamepad & | pad, |
| N5110 & | lcd, | ||
| FXOS8700CQ & | mag | ||
| ) |
Controls selection of options in death menu.
- Parameters:
-
Gamepad LCD Magnometer
Definition at line 263 of file SnakeEngine.cpp.
| void game_run | ( | Gamepad & | pad, |
| N5110 & | lcd | ||
| ) |
| void menu1_init | ( | Gamepad & | pad, |
| N5110 & | lcd | ||
| ) |
| void menu1_select | ( | Gamepad & | pad, |
| N5110 & | lcd, | ||
| FXOS8700CQ & | mag | ||
| ) |
Controls selection of options in menu 1.
- Parameters:
-
Gamepad LCD Magnometer
Definition at line 188 of file SnakeEngine.cpp.
| void menu2_select | ( | Gamepad & | pad, |
| N5110 & | lcd, | ||
| FXOS8700CQ & | mag | ||
| ) |
Controls selection of options in menu 2.
- Parameters:
-
Gamepad LCD Magnometer
Definition at line 225 of file SnakeEngine.cpp.
Generated on Fri Jul 15 2022 20:20:44 by
1.7.2