update and cleanup chaingame

This commit is contained in:
2021-10-23 12:00:14 +02:00
parent 48a1126a1c
commit 4cc0c33cce
2 changed files with 13 additions and 12 deletions

View File

@@ -5,7 +5,7 @@
#include "buttons.h"
#include "game.h"
#define PLAYNEXTTIMEOUT 3000 // 3sec * 1000ms
#define PLAYNEXTTIMEOUT 1500 // 3sec * 1000ms
typedef enum
{
@@ -21,9 +21,9 @@ class c_chaingame : public c_game
{
private:
uint8_t patternIndex;
bool patternFlag = false;
//bool patternFlag = false;
uint16_t cheatbutton = 0;
bool cheatButtonFlag = false;
//bool cheatButtonFlag = false;
uint16_t ledpattern[4] = {1, 3, 1, 2};
int patternlength = sizeof(ledpattern) / sizeof(ledpattern[0]);
cg_states state = cg_reset;