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
25#else //older without the board .. but with a buzzer
26#define BUZZ 26
27
28#endif //ESP_M5
29
30/***************** End definitons ** Start assignments **********/
31void setup_UIModule();
32void loop_UIModule();
33
34//!UI specific actions
35void setBuzzerLight_UIModule(boolean onFlag);
36
37//!turns on/off a solid light
38void solidLightOnOff_UIModule(boolean onOff);
39
40//!blink the LED
void setup_UIModule()
UIModule
Definition: UI.cpp:13
void loop_UIModule()
Definition: UI.cpp:14
void setBuzzerLight_UIModule(boolean onFlag)
UI specific actions.
Definition: UI.cpp:17
void blinkLED_UIModule()
blink the LED
Definition: UI.cpp:23
void solidLightOnOff_UIModule(boolean onOff)
turns on/off a solid light
Definition: UI.cpp:20