The ultimate memory game

Placed on

The buttons

To control the buttons we need to add a piece of code that is similar to the piece of code for the LEDs. The biggest difference is that we now work with buttons instead of LEDs.

clickhereto see what we've seen so far

To check if the right button was pressed I used the code below:

scoring

Of course we want to see our points if we are lost. This code shows the points by means of LED flickering.

the total code:

Current Page 7. Programming (3) 1. Introduction 2. Buttons 3. The LEDs 4. The wiring 5. Programming (1) 6. Programming (2) 7. Programming (3) 8. A housing Posted by Student industrial sciences

Comments

Webwinkelkeur Kiyoh Trustpilot Opencircuit