Reaction Timer
I would like to learn how to control the STR9 to create a reation timer program. When a button is pressed the unit waits a random time interval (between four and eight seconds) then begins incrementing LEDs on a bargraph display so that they appear to 'rise' upwards. When the user sees the LEDs moving, he presses a 'stop' button as soon as possible - the earlier the button is pressed, the fewer LEDs that are lit.
Can anyone show an example how to start with this?? Thanks #reaction #timer #divide-and-conquer