Project

General

Profile

DotMatrixDisplay » History » Version 6

Frédéric Blanc, 2020-04-17 16:42

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