Go Down

Topic: Help with a game idea? (Read 574 times) previous topic - next topic

JustDepends

I want to write a code that will ask a user yes or no questions. They will use push buttons to answer yes or no and the questions will be displayed on an LCD screen. What I was thinking of doing was having a variable with a certain value. Every question will affect the value of this variable. And if the variable is a above a certain number it will display a message. It is sort of like a game show I suppose? Now I'm not exactly sure where to start. I have no idea how to change and store the value of a variable. Also how do I make my arduino wait until a button is pushed. I don't know I'm so confused. Can anyone help me get started?

GoForSmoke

http://arduino.cc/en/Reference/HomePage

http://arduino.cc/en/Tutorial/HomePage

Nick Gammon on multitasking Arduinos:
1) http://gammon.com.au/blink
2) http://gammon.com.au/serial
3) http://gammon.com.au/interrupts

Osgeld

http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL

winner10920

From the sounds of it you should also read about progmem and storing string into it and retrieving

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy