Pages: [1]   Go Down
Author Topic: Help with a game idea?  (Read 400 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 18
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 58
Posts: 4019
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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

Logged

Examples can be found in your IDE.

SE USA
Offline Offline
Faraday Member
**
Karma: 40
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

look at
http://arduino.cc/it/Tutorial/Button

that will get you most of the way
Logged


Offline Offline
Edison Member
*
Karma: 4
Posts: 1726
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: