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
Snake_engine/Snake_engine.h
- Committer:
- weiway
- Date:
- 2018-05-03
- Revision:
- 10:946a3835a7c7
- Child:
- 11:f026cd7d66ee
File content as of revision 10:946a3835a7c7:
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Snake.h"
#include "Fruit.h"
#ifndef SNAKENGINE_H
#define SNAKENGINE_H
class snake_enging
{
public:
snake_engine();
~snake_engine();
void init();
void draw(N5110 &lcd);
void update(Gamepad &pad);
void read_input(Gamepad &pad);