Page 1 of 1

Question 1 Connect then gLCD and Navigation Switch with MBED. Draw a small ball (filled circle) on center of screen and

Posted: Thu May 05, 2022 1:14 pm
by answerhappygod
Question 1
Connect then gLCD and Navigation Switch with MBED. Draw a small
ball (filled circle) on center of screen and move ball right, left,
up and down with the navigation switch right, left, up and down
respectively. On pressing center click on navigation switch, reset
the ball to center of screen. It is required to use interrupts for
push buttons. (In-case navigation switch is not available, use 5
push buttons, one for each direction)
Question 2
Connect RGB LED, DIP Switch, Potentiometer and gLCD with the
MBED. You need to connect 3 switches from DIP switch array to the
MBED. Each switch corresponds to Red, Green and Blue color of the
LED. You need to change color of RGB LED with the movement of
potentiometer. Potentiometer can change only value of colors
selected by DIP switch. You also need to fill a rectangle or circle
in center of gLCD with the same color as on LED, and display the
color value on gLCD also. (In case DIP switch is not available, use
3 switches from trainer board)
I require help with the coding portion on mbed for both
parts