Dependencies:   MMA8452 N5110 PowerControl beep mbed

History

Changes: all header file are documented, changing in debounce function of all the buttons, little change with condition of putting mbed into sleep mode.; default tip

2015-05-10, by stevenle93 [Sun, 10 May 2015 17:21:39 +0000] rev 9

Changes: all header file are documented, changing in debounce function of all the buttons, little change with condition of putting mbed into sleep mode.;


Change: detach the tickers after the game.;

2015-05-09, by stevenle93 [Sat, 09 May 2015 22:59:15 +0000] rev 8

Change: detach the tickers after the game.;


Changes: debouncing time 300ms, timer set.

2015-05-08, by stevenle93 [Fri, 08 May 2015 02:11:03 +0000] rev 7

Changes: debouncing time 300ms, timer set.


Changes: debouncing the buttons, welcome screen.

2015-05-07, by stevenle93 [Thu, 07 May 2015 23:56:49 +0000] rev 6

Changes: debouncing the buttons, welcome screen.


The changes include: alert sound when the countdown in 10s, the High score menu was extended into Easy, Normal and Hard mode scores, testing function of Sleep().

2015-05-05, by stevenle93 [Tue, 05 May 2015 22:32:07 +0000] rev 5

The changes include: alert sound when the countdown in 10s, the High score menu was extended into Easy, Normal and Hard mode scores, testing function of Sleep().


Score is stored in an array

2015-05-04, by stevenle93 [Mon, 04 May 2015 21:14:23 +0000] rev 4

Score is stored in an array


The changes include: FSM for game menu, gamerule() has three difficulties, difference Ticker for clock count down and time interval for reading sensor data.

2015-05-04, by stevenle93 [Mon, 04 May 2015 15:55:32 +0000] rev 3

The changes include: FSM for game menu, gamerule() has three difficulties, difference Ticker for clock count down and time interval for reading sensor data.


This version contains a menu for game. The menu has sections as follow: High Score, Main Menu, Game.

2015-05-02, by stevenle93 [Sat, 02 May 2015 20:29:52 +0000] rev 2

This version contains a menu for game. The menu has sections as follow: High Score, Main Menu, Game.


Game rule: Score increases by one when accelerometer value > 3g

2015-04-20, by stevenle93 [Mon, 20 Apr 2015 20:00:20 +0000] rev 1

Game rule: Score increases by one when accelerometer value > 3g


Sample Code for initializing Accelerometer

2015-04-09, by stevenle93 [Thu, 09 Apr 2015 16:12:04 +0000] rev 0

Sample Code for initializing Accelerometer