just a quick look at what i’m working on at the moment.
A led sign with 12 max7219 displays hookup up to a esp8266 running homie-esp8266.
It subscribes to a mqtt topic and displays the messages published to that topic.
I pllan on using this together with the HASS MQTT notification service (and on my to do list: when not showing notifications show a time and date)
using the MQTT service option in developer options:
i’m using this sketch at the moment. Can use some serious help with this as the esp watchdog is giving me headaches when scrolling long lines of text. I tried to resolve this by adding a lot of ‘ESP.wdtFeed();’ all over the place…had to disable serial to make it usable…
No sorry. My wife decided it was to big and ugly to have in the living room so it ended up disused in the junk closet…the code I posted worked reasonably well by the way
What a shame. Stick it in your office at least or the man cave if you have one. OK well I will play with this next. Thanks and I may have a few questions down the line.
This is a very interesting one, you can use this as HASS notification and display on the LED.
Do you have a detailed instruction how can it be done? Thanks!
A step by step tutorial would be awesome! I built this LED scrolling sign, but I want to redo the code to make an MQTT connected version for displaying text messages sent to an MQTT broker. Here’s my project: https://www.hackster.io/wizworks/wifi-marquee-scroller-e68977
msg_led:15: error: invalid conversion from 'int' to 'MD_MAX72XX::moduleType_t' [-fpermissive]
MD_Parola P = MD_Parola(DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);
^
In file included from C:\Users\ncouto\Documents\Arduino\msg_led\msg_led.ino:3:0:
C:\Users\ncouto\Documents\Arduino\libraries\MD_Parola\src/MD_Parola.h:1081:3: error: initializing argument 1 of 'MD_Parola::MD_Parola(MD_MAX72XX::moduleType_t, uint8_t, uint8_t, uint8_t, uint8_t)' [-fpermissive]
MD_Parola(MD_MAX72XX::moduleType_t mod, uint8_t dataPin, uint8_t clkPin, uint8_t csPin, uint8_t numDevices = 1);
^
Multiple libraries were found for "ArduinoJson.h"
Used: C:\Users\ncouto\Documents\Arduino\libraries\ArduinoJson
Not used: C:\Users\ncouto\Documents\Arduino\libraries\arduino_736263
exit status 1
invalid conversion from 'int' to 'MD_MAX72XX::moduleType_t' [-fpermissive]
If using the newer libs you need to specify the hardware…
// Define the number of devices we have in the chain and the hardware interface
// NOTE: These pin numbers will probably not work with your hardware and may/will
// need to be adapted
#define HARDWARE_TYPE MD_MAX72XX::FC16_HW
#define MAX_DEVICES 12
#define CLK_PIN D7 // or SCK
#define DATA_PIN D6 // or MOSI
#define CS_PIN D5 // or SS
// HARDWARE SPI
//MD_Parola P = MD_Parola(CS_PIN, MAX_DEVICES);
// SOFTWARE SPI
MD_Parola P = MD_Parola(HARDWARE_TYPE, DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);