- Controller (arduino in this case)
- x4 Buttons
- x1 Resistor (2.2Kohm)
- Some wires and connectors
- Example server
- Example event listeners
This project requires node.js to run.
First of lets see what kind of input a button can give. There is example code in the [Buttons folder]
The gist being;
- Setup the inputs
- Setup the outputs (in this case the serail connection to tell us what the board is reading)
- read the button
Now read 4 buttons and print something different depending on the button pressed. An example can be found in template4buttons folder]
You'll have to do some research for this one.
Using the proided website in the public
folder you could generate a sequence the buttons must be clicked in and validate the user input of the order.
Once you've got user input being validated you can start scoring progress. There is code included for this but you'll have to look at raceClicks for examples.