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/Food.h
- Committer:
- JoeShotton
- Date:
- 2020-05-25
- Revision:
- 9:0571880085cc
- Parent:
- 8:bcc3403d7e79
- Child:
- 10:a2d643b3c782
File content as of revision 9:0571880085cc:
#ifndef FOOD_H
#define FOOD_H
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "FXOS8700CQ.h"
#include "Map.h"
class Food
{
public:
Food();
~Food();
void init(FXOS8700CQ &mag);
bool rand_pos(Gamepad &pad, N5110 &lcd);
void draw(N5110 &lcd, int &_frame);
void run(N5110 &lcd);
int _x;
int _y;
private:
int _frame;
float _values;
float _seed;
};
#endif