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.
food/food.cpp
- Committer:
- jahanzebkhan
- Date:
- 2020-06-05
- Revision:
- 2:430dcf420840
File content as of revision 2:430dcf420840:
#include "food.h" Food::Food() { } Food::~Food() { } void Food::init(){ fo_x = 16; fo_y = 38; chng_food = false; } void Food::food_location(N5110 &lcd){ if (chng_food == true){ chng_food = false; lcd.setPixel(fo_x, fo_y, 0); fo_x = rand()%84; fo_y = rand()%48; } }