ESP_IOT v2.5
IOT ESP Coding
UI.h
Go to the documentation of this file.
1#pragma once
2
3#include "../../Defines.h"
4
5#ifdef ESP_M5
6// not used by M5, but there is a pin 2 that buzzes
7#define BUZZ 23
8
9#elif defined(BOARD)
10/***************** LED definitions *******************************/
11#define BLUE_LED 32
12#define GREEN_LED 33
13#define YELLOW_LED 25
14
15/***************** Touch Pad definitons **************************/
16#define TOUCH_1 4
17#define TOUCH_2 13
18#define TOUCH_3 15
19
20/***************** Other definintions ****************************/
21#define BUZZ 23
22#define POWER_PIN 18
23
24#elif defined(PROTO)
25/***************** LED definitions *******************************/
26#define BLUE_LED 33
27#define GREEN_LED 25
28#define YELLOW_LED 26
29
30/***************** Touch Pad definitons **************************/
31#define TOUCH_1 4
32#define TOUCH_2 2
33#define TOUCH_3 15
34
35/***************** Other definintions ****************************/
36#define BUZZ 23
37#define POWER_PIN 18
38
39
40#else //older without the board .. but with a buzzer
41#define BUZZ 26
42
43#endif //ESP_M5
44
45/***************** End definitons ** Start assignments **********/
46void setup_UIModule();
47void loop_UIModule();
48
49//!UI specific actions
50void setBuzzerLight_UIModule(boolean onFlag);
51
52//!turns on/off a solid light
53void solidLightOnOff_UIModule(boolean onOff);
54
55//!blink the LED
void setup_UIModule()
UIModule
Definition: UI.cpp:16
void loop_UIModule()
the main loop()
Definition: UI.cpp:47
void setBuzzerLight_UIModule(boolean onFlag)
UI specific actions.
Definition: UI.cpp:110
void blinkLED_UIModule()
blink the LED
Definition: UI.cpp:137
void solidLightOnOff_UIModule(boolean onOff)
turns on/off a solid light
Definition: UI.cpp:128