RGB LED matching

Overview

For our project we used a randomly generated pattern that is output in the forms of colors on the RGB LED. The user matches this pattern and, if correct, the pattern increases by one in length. If the user beats the high score they will be prompted to input their initials for the high score screen. /media/uploads/coyle19/20151019_201618.jpg

Components

  • mbed
  • uLCD
  • RGB LED
  • 3 Pushbuttons
uLCDMbed
txp9
rxp10
resp11
3.3vVout
gndgnd
Push ButtonMbed
PB1p21
PB2p22
PB3p23
RGB LEDMbed
Redp18
Greenp19
Bluep20

Program

Import programPatternMatching

Uses a randomly generated pattern that is output in the forms of colors on the RGB LED. The user matches this pattern and, if correct, the pattern increases by one in length. If the user beats the high score they will be prompted to input their initials for the high score screen.


Please log in to post comments.