You are browsing as a guest. Sign up (or log in) to start making projects!

4h 48m 24s logged

The main feature that i will use for my Multitasking game is complete, the LCD screen that displays if you loose and that has a reaction time feature and an LED that lights green once you have completed a correct action. the game revolves around you having to click an button within a 3 second timeframe, if you fail to do then the entire Arduino freezes and the LCD displays a message about how you lost and that you must restart your Arduino to reset the minigame. The way that i am making this work is by using lots of integers. an example from the code is this: int lcdx = 0; if (digitalRead(switchPin) == HIGH){    if(lcdx >=14 && lcdx <= 16){      good++;      lcd.clear();      digitalWrite(goodled, HIGH);      delay(1000);      digitalWrite(goodled, LOW);      lcdx = 0;        } This is how i register if the button was pressed within the timeframe, if it was pressed within the timeframe the “goodled” lights up and the minigame pauses for a second. My insiration for this project is the multitasking deivces you have to use to get your ppl (private pilots lisence) (picture is a pilot Multitasking test device)

0
11

Comments 0

No comments yet. Be the first!