Project

General

Profile

DotMatrixDisplay » History » Version 11

Frédéric Blanc, 2020-04-17 17:28

1 1 Frédéric Blanc
h1. DotMatrixDisplay
2
3
h2. Hardware
4
5 11 Frédéric Blanc
!clipboard-202004171728-s7l4w.png!
6
7 1 Frédéric Blanc
https://majicdesigns.github.io/MD_MAX72XX/page_f_c16.html
8
9 9 Frédéric Blanc
<pre><code>
10 1 Frédéric Blanc
// ESP8266 PIN configuration
11
#define HARDWARE_TYPE MD_MAX72XX::FC16_HW       //PAROLA_HW GENERIC_HW ICSTATION_HW
12
#define CLK_PIN   D5  // Matrix CLK
13
#define DATA_PIN  D7  // Matrix DIN
14
#define CS_PIN    D6  // Matrix DS
15 9 Frédéric Blanc
</code></pre>
16 1 Frédéric Blanc
17 4 Frédéric Blanc
h2. Software
18
19
code exemple
20
http://sarakha63-domotique.fr/afficheur-led-matrixled-jeedom/
21
22
https://github.com/MajicDesigns/MD_Parola
23
24 5 Frédéric Blanc
version light
25
26
document:"code light DotMatrixDisplay"
27
28 6 Frédéric Blanc
29
mise a jour du code ArduinoJson 5 -> ArduinoJson 6
30
31 7 Frédéric Blanc
<pre><code>
32 6 Frédéric Blanc
// ArduinoJson 5
33 10 Frédéric Blanc
//StaticJsonBuffer<512> jsonBuffer;
34
//JsonObject& root = jsonBuffer.parseObject((char*)payloadcopy);
35
//if (!root.success()) {
36
// ArduinoJson 6
37 6 Frédéric Blanc
  DynamicJsonDocument root(1024);
38
  DeserializationError error = deserializeJson(root, (char*)payloadcopy);
39
  // Test if parsing succeeds.
40
  if (error){
41 7 Frédéric Blanc
</code></pre>
42 6 Frédéric Blanc
43 8 Frédéric Blanc
h3. To Do
44
45
rendre la configuration MQTT dynamique
46
47 1 Frédéric Blanc
h2. MQTT
48
49 2 Frédéric Blanc
topic: DotMatrixDisplay/message
50
51 1 Frédéric Blanc
{"text":"ABC°€",
52
"priorite":0,
53
"lum":1,
54
"pos":2,
55
"eff_in":9,
56
"eff_out":9,
57
"speed":1000,
58
"pause":100}
59 3 Frédéric Blanc
60
{"text":"Bonjour tous le monde",
61
"priorite":0,
62
"lum":1,
63
"pos":1,
64
"eff_in":1,
65
"eff_out":9,
66
"speed":50,
67
"pause":100}