Actions
DotMatrixDisplay¶
Hardware¶
https://majicdesigns.github.io/MD_MAX72XX/page_f_c16.html
// ESP8266 PIN configuration
#define HARDWARE_TYPE MD_MAX72XX::FC16_HW //PAROLA_HW GENERIC_HW ICSTATION_HW
#define CLK_PIN D5 // Matrix CLK
#define DATA_PIN D7 // Matrix DIN
#define CS_PIN D6 // Matrix DS
Software¶
code exemple
http://sarakha63-domotique.fr/afficheur-led-matrixled-jeedom/
https://github.com/MajicDesigns/MD_Parola
version light
mise a jour du code ArduinoJson 5 -> ArduinoJson 6
// ArduinoJson 5
//StaticJsonBuffer<512> jsonBuffer;
//JsonObject& root = jsonBuffer.parseObject((char*)payloadcopy);
//if (!root.success()) {
// ArduinoJson 6
DynamicJsonDocument root(1024);
DeserializationError error = deserializeJson(root, (char*)payloadcopy);
// Test if parsing succeeds.
if (error){
To Do¶
rendre la configuration MQTT dynamique
MQTT¶
topic: DotMatrixDisplay/message
{"text":"ABC°€",
"priorite":0,
"lum":1,
"pos":2,
"eff_in":9,
"eff_out":9,
"speed":1000,
"pause":100}
{"text":"Bonjour tous le monde",
"priorite":0,
"lum":1,
"pos":1,
"eff_in":1,
"eff_out":9,
"speed":50,
"pause":100}
Updated by Frédéric Blanc over 4 years ago · 11 revisions