![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Power Grid Board Game Timer. Acts like a chess timer for 3-6 people. Uses an ADXL accelerometer to pause the timer and change players. Uses an LCD screen to prompt the players for input, read that input, and change between rounds.
Dependencies: DmTouch_UniGraphic UniGraphic-forLdelaney17FinalProject mbed
acc.h
- Committer:
- ldelaney17
- Date:
- 2017-01-25
- Revision:
- 5:e07903df9510
- Parent:
- 1:ba0f395e8c11
File content as of revision 5:e07903df9510:
#ifndef ACC_H #define ACC_H #include "mbed.h" extern I2C connection; //extern Serial pc; const int addr_acc = 0x53 << 1; //initializes based on a duration in ms, threshold in g, gap in ms and window in ms void acc_init(float duration, float threshold, float gap, float window); //reads the interrupt source register and returns 1 if there was a single tap, or 2 if there was a double tap char get_int_type(); #endif