You are reading a single comment by @allObjects and its replies. Click here to read the full conversation.
  • ...I'm not so sure... I understand more or less what you want to do: show a larger rectangle for each of the LEDs on your display.

    In post #16 of this conversation, I gave you some help to modify the code so it shows wider bars for each of the LED. You mentioned then no positive feedback in posts #17 and #18, since I could not test the code as per the instruction, I decided to to that verification,... and it was successful.

    Just follow the instructions and copy the lines 89 through 223 - your code with the added lines as instructed in post #16 - and paste them into the editor pane of your Espruino Web IDE, upload them, and enter lightsOn() in the console. Then you play with your button that changes the patterns. Finally, you enter lightsOff() in the console to stop the lights.

    That's it!

    PS: Study the doLights() {...}... you will see how it achieves to make rectangle per LED as wide or tall as possible (together with the setup in the if-then-else after your line that shows var rgb = new Uint8Array(50*3);.

About

Avatar for allObjects @allObjects started