Flip tile pattern game

Dependencies:   4DGL-uLCD-SE PinDetect SDFileSystem mbed-rtos mbed wave_player

Committer:
jsmith352
Date:
Thu Oct 22 15:28:45 2015 +0000
Revision:
1:4e25bf8e016e
Parent:
0:96656a61e4e3
flip tile

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jsmith352 0:96656a61e4e3 1 #ifndef _CURSOR_H_
jsmith352 0:96656a61e4e3 2 #define _CURSOR_H_
jsmith352 0:96656a61e4e3 3
jsmith352 0:96656a61e4e3 4 #ifndef TILE_OFF
jsmith352 0:96656a61e4e3 5 #define TILE_OFF 0xFF0000
jsmith352 0:96656a61e4e3 6 #endif
jsmith352 0:96656a61e4e3 7 #ifndef TILE_ON
jsmith352 0:96656a61e4e3 8 #define TILE_ON 0x00FF00
jsmith352 0:96656a61e4e3 9 #endif
jsmith352 0:96656a61e4e3 10
jsmith352 0:96656a61e4e3 11 #include "uLCD_4DGL.h"
jsmith352 0:96656a61e4e3 12
jsmith352 0:96656a61e4e3 13
jsmith352 0:96656a61e4e3 14 class Cursor
jsmith352 0:96656a61e4e3 15 {
jsmith352 0:96656a61e4e3 16 public:
jsmith352 0:96656a61e4e3 17 // constructors
jsmith352 0:96656a61e4e3 18 //Cursor (uLCD_4DGL *);
jsmith352 0:96656a61e4e3 19 Cursor(PinName, PinName, PinName);
jsmith352 0:96656a61e4e3 20
jsmith352 0:96656a61e4e3 21 //circles
jsmith352 0:96656a61e4e3 22 void drawCircle(int, int); //position, color
jsmith352 0:96656a61e4e3 23 void circle0(int);
jsmith352 0:96656a61e4e3 24 void circle1(int);
jsmith352 0:96656a61e4e3 25 void circle2(int);
jsmith352 0:96656a61e4e3 26 void circle3(int);
jsmith352 0:96656a61e4e3 27 void circle4(int);
jsmith352 0:96656a61e4e3 28 void circle5(int);
jsmith352 0:96656a61e4e3 29 void circle6(int);
jsmith352 0:96656a61e4e3 30 void circle7(int);
jsmith352 0:96656a61e4e3 31 void circle8(int);
jsmith352 0:96656a61e4e3 32 void circle9(int);
jsmith352 0:96656a61e4e3 33 void circle10(int);
jsmith352 0:96656a61e4e3 34 void circle11(int);
jsmith352 0:96656a61e4e3 35 void circle12(int);
jsmith352 0:96656a61e4e3 36 void circle13(int);
jsmith352 0:96656a61e4e3 37 void circle14(int);
jsmith352 0:96656a61e4e3 38 void circle15(int);
jsmith352 0:96656a61e4e3 39
jsmith352 0:96656a61e4e3 40 bool number_of_circles; //true for 9(3x3), false for 16(4x4)
jsmith352 0:96656a61e4e3 41
jsmith352 0:96656a61e4e3 42 private:
jsmith352 0:96656a61e4e3 43 uLCD_4DGL *LCD_ptr;
jsmith352 0:96656a61e4e3 44 };
jsmith352 0:96656a61e4e3 45 #endif