DotMatrixDisplay » History » Revision 7
Revision 6 (Frédéric Blanc, 2020-04-17 16:42) → Revision 7/11 (Frédéric Blanc, 2020-04-17 16:43)
h1. DotMatrixDisplay h2. 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 h2. Software code exemple http://sarakha63-domotique.fr/afficheur-led-matrixled-jeedom/ https://github.com/MajicDesigns/MD_Parola version light document:"code light DotMatrixDisplay" mise a jour du code ArduinoJson 5 -> ArduinoJson 6 <pre><code> // 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){ </code></pre> h2. 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}