NerfStatTrak/Globals.cpp
Mark van Renswoude ba58eb93c0 Moved away from proof of concepts, started prototyping for the final software
- Button library
- State handling and transitions
- Default state: dual counter display
- User unknown state: static for now
- Lost the game state: static for now
2016-12-04 19:53:43 +01:00

24 lines
358 B
C++

#include "Globals.h"
#include "StateHandler.h"
SegmentDisplay* display;
Button* buttonA;
Button* buttonB;
uint32_t shots = 0;
uint32_t hits = 0;
unsigned long currentTime;
AbstractStateHandler* currentState;
void setCurrentState(AbstractStateHandler* value)
{
buttonA->block();
buttonB->block();
currentState = value;
currentState->setup();
}