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
74#ifdef M5CORE2_MODULE
75
76/**
77 First attempt at using the M5Core2 display to show something other than the M5 display
78 1. scrolling text
79 */
80//! 1.24.24 Adding scrolling text (if that window on the M5Core2 is shown)
81void addToScrollingText_displayModule(String textString);
82//! 1.24.24 Goto the scrolling text mode ..
83void toggleShowingScrollingTextMode_displayModule();
84//! 1.24.24 Goto the scrolling text mode .. if flag -- saves value
85void setShowingScrollingTextMode_displayModule(boolean flag);
86//! 2.27.24 make the button seem to be touched
87//void showButtonTouched_displayModule();
88//! 2.29.24 Leap Year day
89//! Returns whether the Scrolling Text window is shown
90//! 1.24.24 as alternate display windows are introducted,
91//! let others know and don't overright stuff..
92boolean inAlternateDisplay_displayModule();
93
94//! add a loop for the alternate display
95void loop_Alternate_displayModule();
96
97//! scrolls the displayed text
98void scrollText_displayModule();
99
100//! 4.3.24 show text in big letters
101//!@see https://github.com/konacurrents/ESP_IOT/issues/323
102//!show full screen message..
103void displayFullscreenMessage(String text, boolean turnOn);
104
105#endif
106
107#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,