Exercises

14.1 Design a project having two rectangular shaped components on a GLCD screen. Label these components as START and STOP. Write a Visual GLCD based program, such that when the START button is pressed, a buzzer connected to port pin RC7 gives a sound at the frequency of 800 Hz, and when the STOP button is pressed the buzzer stops sounding.

14.2 Design an integer calculator using the Visual GLCD software and the SmartGLCD module. The calculator should have the numbers 0 to 9, a clear key and an ENTER key. In addition, a display should be provided to show results of a calculation. Assume the four basic mathematical operations ‘+ − */’.

14.3 Design a free-hand screen drawing project using the Visual GLCD software and the SmartGLCD module. The user should be able to draw lines on the screen by touching and moving a stylus on the screen.

14.4 Modify the program in (3) above, so that the images created can be saved.

Get Using LEDs, LCDs and GLCDs in Microcontroller Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.