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.


8 comments:

  1. Replies
    1. https://github.com/Snake-Sanders/arduino-watering-system

      Delete
  2. Arduino file please

    ReplyDelete
  3. Hola me ha gustado mucho esta entrada como podria adaptarlo seria tipo menu principal
    *Manual
    Sub Menu
    *Abrir/Cerrar Agua- Con "*" apagar agua "#" Encender
    *Abrir/Cerrar Aceite - Los mismos botones que arriba.

    otra opcion en Menu principal seria

    *Automatico
    sub menu

    10litros
    Sub menu
    3%
    5%

    15litros
    Sub menu
    3%
    5%

    cuando llegues a la ultima opcion haga la funcion

    Muchas Gracias

    ReplyDelete
  4. ardunio kodlarını verirmisiniz.?Lütfen

    ReplyDelete
  5. Hello can iask for the code

    ReplyDelete