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
Food Class Reference
#include <Food.h>
Public Member Functions | |
| void | init (Gamepad &pad, N5110 &lcd, FXOS8700CQ &mag) |
| Initialises magnetometer and seeds random function. | |
| bool | rand_pos (Gamepad &pad, N5110 &lcd) |
| Chooses random coordinates for food. | |
| void | draw (N5110 &lcd) |
| Animates food. | |
| void | run (N5110 &lcd) |
| Runs food functions that need looping. | |
Detailed Description
- Functions that exclusively control the food
- Date:
- May 2020
- Version:
- V1.0
Definition at line 16 of file Food.h.
Member Function Documentation
| void init | ( | Gamepad & | pad, |
| N5110 & | lcd, | ||
| FXOS8700CQ & | mag | ||
| ) |
| bool rand_pos | ( | Gamepad & | pad, |
| N5110 & | lcd | ||
| ) |
Generated on Fri Jul 15 2022 20:20:44 by
1.7.2