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 **********/
46
void
setup_UIModule
();
47
void
loop_UIModule
();
48
49
//!UI specific actions
50
void
setBuzzerLight_UIModule
(
boolean
onFlag);
51
52
//!turns on/off a solid light
53
void
solidLightOnOff_UIModule
(
boolean
onOff);
54
55
//!blink the LED
56
void
blinkLED_UIModule
();
setup_UIModule
void setup_UIModule()
UIModule
Definition:
UI.cpp:16
loop_UIModule
void loop_UIModule()
the main loop()
Definition:
UI.cpp:47
setBuzzerLight_UIModule
void setBuzzerLight_UIModule(boolean onFlag)
UI specific actions.
Definition:
UI.cpp:110
blinkLED_UIModule
void blinkLED_UIModule()
blink the LED
Definition:
UI.cpp:137
solidLightOnOff_UIModule
void solidLightOnOff_UIModule(boolean onOff)
turns on/off a solid light
Definition:
UI.cpp:128
src
UIModule
UI.h
Generated on Wed Jan 11 2023 09:16:22 for ESP_IOT by
1.9.5