DotMatrixDisplay » History » Revision 10
Revision 9 (Frédéric Blanc, 2020-04-17 17:23) → Revision 10/11 (Frédéric Blanc, 2020-04-17 17:24)
h1. DotMatrixDisplay h2. Hardware https://majicdesigns.github.io/MD_MAX72XX/page_f_c16.html <pre><code> // 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 </code></pre> 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> h3. To Do rendre la configuration MQTT dynamique 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}