Go Down

Topic: Help with a game idea? (Read 1 time) previous topic - next topic


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?




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




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

Go Up