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
Diff: Wall/Wall.h
- Revision:
- 0:fd8eda608206
- Child:
- 1:f09ff0ed98fd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Wall/Wall.h Wed May 08 18:50:21 2019 +0000 @@ -0,0 +1,29 @@ +#ifndef WALL_H +#define WALL_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" + +class Wall +{ + +public: + Wall(); + ~Wall(); + void init(int x,int gap,int width,int speed); + void draw1(N5110 &lcd); + void draw2(N5110 &lcd); + void update(); + void reset(); + Vector2D get_height(); + +private: + + int _height; + int _width; + int _x; + int _y; + int _speed; +}; +#endif \ No newline at end of file