esp8266-LEDMatrix icon indicating copy to clipboard operation
esp8266-LEDMatrix copied to clipboard

Nothing is displayed on the Led Matrix

Open Grey-Lancaster opened this issue 4 years ago • 4 comments

Hey I know this is old but thought I would try. I have other code that works so I know it is wired correctly D6 and all. If I have something else running it stops while it uploads your code then just goes blank. I get the webpage and serial monitor shows updates. Curious though as it prints something's twice and it seems to reboot every now and then.

Thanks, Grey

Connected to shop2 IP address: 192.168.1.174 MDNS responder started HTTP server started IP Address: 192.168.1.174 0010FF 0010FF 6 My msg here My msg here

Grey-Lancaster avatar Nov 13 '21 18:11 Grey-Lancaster

I believe I have experienced the same thing. I've generally just hit the reset button manually when this occurs, but that's obviously not a good solution.

It's possible that there's a memory leak (although I doubt it) or integer overflow.

lights0123 avatar Nov 13 '21 19:11 lights0123

You are alive :-) Thanks for the quick reply. I Just made it "work" by changing the "X" calculation but obviously it it does not work well with different length of msgs. When I use your code it does not display anything. Changing this starts with the ip and updates from the web page I guess that is the integer overflow?

` matrix.fillScreen(0); matrix.setCursor(x, 0); matrix.setTextColor(matrix.Color(r, g, b)); matrix.print(message); // if (x < ((int)message.length()) * -6) { // Serial.print(x); // Serial.print(' '); // Serial.println(((int)message.length()) * -6); // x = matrix.width(); if(--x < -140) { x = matrix.width();

} matrix.show(); delay(100);`

Grey-Lancaster avatar Nov 13 '21 19:11 Grey-Lancaster

Okay I found it. need two dashes in front of x also I think my reboots may have been because I was not using a real external 5v power supply. Just running it from the wall wart to the d1 mini if (x < ((int)message.length()) * -6) { change to if (--x < ((int)message.length()) * -6) {

I love it thanks so much Grey

Grey-Lancaster avatar Nov 14 '21 14:11 Grey-Lancaster

I fully understand I am bugging you on an old project. Is there somewhere else I should be looking for doing an 8 X 32 led matrix? I have not found much.

So should there be a color picker in this blank space? I can send money of that helps :-) image

Grey-Lancaster avatar Nov 14 '21 22:11 Grey-Lancaster