Showing posts with label fan. Show all posts
Showing posts with label fan. Show all posts

Aug 25, 2012

Interactive menu with keypad and the LCD display

After make sure that each button is recognized properly by the software I created a class called Menu.

This class is for controlling the menu's options, reacting to the buttons' events:
UP, DOWN, LEFT  and RIGHT.

Basically the menu has four options, they are listed as follow:


1 - LIGHTS
2 - WATER PUMP
3 - FAN
4 - HUMIDIFIER

The program starts showing the option 1 - LIGHTS. Pressing the buttons UP and DOWN you can scroll the menu. Boundaries were established to not let the buttons scroll more than available options.
With the LEFT and RIGHT buttons you can set ON and OFF the status of the output which is not implemented yet. The status is shown on the bottom right corner.