ESP_IOT v2.5
IOT ESP Coding
DisplayModule.h
Go to the documentation of this file.
1#ifndef DisplayModule_h
2#define DisplayModule_h
3
4//!for types: String, boolean ..
5#include "../../Defines.h"
6
7/*! M5 Display with SemanticMarker™
8* \image html SMStatus2.PNG "SemanticMarker™"
9*/
10
11
12//!THIS IS the setup() and loop() but using the "component" name, eg MQTTNetworking()
13//!This will perform preference initializtion as well
14//! called from the setup()
16
17//! called for the loop() of this plugin
19
20//! shows a FEED (or whatever) then blanks the screen after N seconds
21//! NOTE: This will be a scrolling text as sometime ..
22void showText_displayModule(String text);
23
24//! adds messages that aren't shown unless in message window mode.
25//! NOTE: This will be a scrolling text as sometime ..
26void addToTextMessages_displayModule(String text);
27
28//!blanks the screen
30
31//!wakes up the screen
33
34//!whether screen is blank (so the button can be a wake, vs action..)
36
37//!clears the screen
39
40//!displays the Semantic Marker (a super QR code) on the M5 screen (title = to display)
41void showSemanticMarker_displayModule(String semanticMarkerAddress, String title);
42
43//!returns the current semantic marker (eg. guest page)
45
46//!the function to call to get the 'status', return char*
47//char* (*getStatusFunc)(void)
48//typedef String (*getStatusFunc)(void);
49
50//!displays the Semantic Marker (a super QR code) on the M5 screen (title = to display)
51void showSemanticMarkerFunc_displayModule(String semanticMarkerAddressBase, String title, const char* (*getStatusFunc)(void));
52
53#define START_NEW true
54#define KEEP_SAME false
55//!redraws the Semantic Marker image..
56void redrawSemanticMarker_displayModule(boolean startNew);
57
58//!returns the loop timer (just a timer..)
60
61//!reset the loop timer .. useful for testing,
63
64//!Increment the screen color 0..n cache for getting the screen color 0..max (max provided by sender)
65//!This is implemented by incrementScreenColor_mainModule() since it knows the MAX value of colors
67
68//!cache for getting the screen color 0..n. Will reset the cache as well
69void setScreenColor_displayModule(int screenColor);
70
71//!show an OTA message..
73#endif // DisplayModule
void loop_displayModule()
called for the loop() of this plugin
void showSemanticMarkerFunc_displayModule(String semanticMarkerAddressBase, String title, const char *(*getStatusFunc)(void))
the function to call to get the 'status', return char*
void addToTextMessages_displayModule(String text)
void wakeupScreen_displayModule()
wakes up the screen
void showOTAUpdatingMessage()
show an OTA message..
void setup_displayModule()
for types: String, boolean ..
void clearScreen_displayModule()
clears the screen
void incrementScreenColor_displayModule()
boolean isBlankScreen_displayModule()
whether screen is blank (so the button can be a wake, vs action..)
void showText_displayModule(String text)
void redrawSemanticMarker_displayModule(boolean startNew)
redraws the Semantic Marker image..
void setScreenColor_displayModule(int screenColor)
cache for getting the screen color 0..n. Will reset the cache as well
void showSemanticMarker_displayModule(String semanticMarkerAddress, String title)
displays the Semantic Marker (a super QR code) on the M5 screen (title = to display)
void blankScreen_displayModule()
blanks the screen
const char * currentSemanticMarkerAddress_displayModule()
returns the current semantic marker (eg. guest page)
int getLoopTimer_displayModule()
returns the loop timer (just a timer..)
void resetLoopTimer_displayModule()
reset the loop timer .. useful for testing,