ESPNode
actor_ledmatrix.h
Go to the documentation of this file.
1 #ifdef USE_ACTOR_LEDMATRIX
2 #ifndef _ACTOR_LEDMATRIX_H_
3 #define _ACTOR_LEDMATRIX_H_
4 #define USE_SWITCH_ONOFF
5 #include "switch_onoff.h"
6 #include "LED_Matrix.h"
7 
11 #define LEDMATRIX_CLK 5 /* D1 */
12 
16 #define LEDMATRIX_DIN 0 /* D3 */
17 
21 #define LEDMATRIX_CS 2 /* D4 */
22 
26 #define LEDMATRIX_DEVICES_X 4
27 
31 #define LEDMATRIX_DEVICES_Y 3
32 
36 #define LINE_SIZE 8
37 
42 class Actor_LEDMatrix : public Switch_OnOff {
43 
44 public:
62  void begin(const char* _html_place, const char* _label, const char* _mqtt_name, const char* _keyword,
63  bool _start_value, bool _on_value, bool _is_state, uint8_t _slider_val, uint8_t _slider_no,
64  const char* _slider_label, const char* _slider_mqtt_name, const char* _slider_keyword,
65  const char* _mqtt_line, const char* _mqtt_graph);
66 
74  bool set(const String& _cmnd, const String& _val);
75 
80  void getMatrixFB(String& fb_cont);
81 
88  void html_init();
89 
94  void loop(time_t now);
95 
96 private:
100  void html_upd_data();
101 
115  void print_line(const char* rohtext);
116 
126  void print_graph(const char* rohtext);
127 
131  String mqtt_line;
132 
136  String mqtt_graph;
137 
143  time_t graph_change_time;
144 };
145 
146 #endif
147 #endif
time_t now
Eine Variable für Zeitinformationen.
Definition: main.h:115
void loop()
Die Hauptschleife.
Definition: main.cpp:564