Crypt Mbed

Dependencies:   mbed wave_player 4DGL-uLCD-SE USBHost

Committer:
amcentag
Date:
Thu Dec 09 07:53:03 2021 +0000
Revision:
0:9d0cdfe46974
version 1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
amcentag 0:9d0cdfe46974 1
amcentag 0:9d0cdfe46974 2
amcentag 0:9d0cdfe46974 3 //void actionW() {
amcentag 0:9d0cdfe46974 4 // action(1);
amcentag 0:9d0cdfe46974 5 //}
amcentag 0:9d0cdfe46974 6 //void actionA() {
amcentag 0:9d0cdfe46974 7 // action(2);
amcentag 0:9d0cdfe46974 8 //}
amcentag 0:9d0cdfe46974 9 //void actionS() {
amcentag 0:9d0cdfe46974 10 // action(3);
amcentag 0:9d0cdfe46974 11 //}
amcentag 0:9d0cdfe46974 12 //void actionD() {
amcentag 0:9d0cdfe46974 13 // action(4);
amcentag 0:9d0cdfe46974 14 //}
amcentag 0:9d0cdfe46974 15
amcentag 0:9d0cdfe46974 16 ////handles actions for button press
amcentag 0:9d0cdfe46974 17 //void action(int i) {
amcentag 0:9d0cdfe46974 18 // //get lock for action
amcentag 0:9d0cdfe46974 19 // int c = -1;
amcentag 0:9d0cdfe46974 20 // actM.lock();
amcentag 0:9d0cdfe46974 21 // //if (actLock) {
amcentag 0:9d0cdfe46974 22 // //lock out further actions
amcentag 0:9d0cdfe46974 23 // actM.lock();
amcentag 0:9d0cdfe46974 24 // actLock = 0;
amcentag 0:9d0cdfe46974 25 // actM.unlock();
amcentag 0:9d0cdfe46974 26 // //check if action is within beat (beat center is 100)
amcentag 0:9d0cdfe46974 27 // c = counter;
amcentag 0:9d0cdfe46974 28 // //if (c >= 76 || c <= 25) {
amcentag 0:9d0cdfe46974 29 // currAction = i;
amcentag 0:9d0cdfe46974 30 // //}
amcentag 0:9d0cdfe46974 31 // //}
amcentag 0:9d0cdfe46974 32 // actM.unlock();
amcentag 0:9d0cdfe46974 33 // //make changes to game board if action was recorded
amcentag 0:9d0cdfe46974 34 //// if (c != -1) {
amcentag 0:9d0cdfe46974 35 //// processAction();
amcentag 0:9d0cdfe46974 36 //// }
amcentag 0:9d0cdfe46974 37 //}