How to display base64 encoded png on WS2812B led matrix using Websocket

Hello,
I followed this https://www.instructables.com/IoT-Emoji-Sign/
and that is ok. But this requires manual event i.e. clicking on screen for selection

I want automatic display.

Example Scenario :

I have a String with base64 encoded image (for simplicity only 1)

I want to display this on my led matrix without the need of user click (action)

How can I get RGB colors from this base64 String and set for each led

In the instaructable example, almost all logic is inside java script. For my scenario, I want it in loop()

Do I need to use canvas to draw and then get each rgb pixel ? If yes, then how can I do it ?

(In the past I used ledmatrixcontrol to generate 0xffffcc, 0xffffcc, 0xffffcc , but it is too much work)

I moved to the next step, but there is a glitch

Fix was using setInterval, which will automatically call my function and send data

Glitch 1: To start I need to click.
Glitch 2 : client Connection is always needed. If the phone/client goes into sleep it will not continue

Do I need to ditch websockets ? or can something be done in setup or loop()

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.