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.
code?
ReplyDeletehttps://github.com/Snake-Sanders/arduino-watering-system
DeleteArduino file please
ReplyDeleteGreat job bro..
ReplyDeleteHola me ha gustado mucho esta entrada como podria adaptarlo seria tipo menu principal
ReplyDelete*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
ok bro
ReplyDeleteardunio kodlarını verirmisiniz.?Lütfen
ReplyDeleteHello can iask for the code
ReplyDelete