mirror of
https://github.com/s00500/ESPUI.git
synced 2024-11-22 04:00:55 +00:00
Update examples
This commit is contained in:
parent
4043274aff
commit
54a71d832c
@ -33,6 +33,7 @@ void setup(void) {
|
|||||||
|
|
||||||
EasyUI.label("Status: Stop");
|
EasyUI.label("Status: Stop");
|
||||||
EasyUI.label("0");
|
EasyUI.label("0");
|
||||||
|
EasyUI.button("Push Button", &buttonCallback);
|
||||||
EasyUI.button("Push Button", &buttonExample);
|
EasyUI.button("Push Button", &buttonExample);
|
||||||
EasyUI.pad("center", true, &padExample);
|
EasyUI.pad("center", true, &padExample);
|
||||||
EasyUI.pad("NoCenter", false, &padExample);
|
EasyUI.pad("NoCenter", false, &padExample);
|
||||||
@ -50,7 +51,7 @@ void loop(void) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void callback1(int id, int type) {
|
void buttonCallback(int id, int type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case B_DOWN:
|
case B_DOWN:
|
||||||
Serial.println("Button DOWN");
|
Serial.println("Button DOWN");
|
||||||
|
Loading…
Reference in New Issue
Block a user