|
Forum Index : Microcontroller and PC projects : 8 x 8 LED Matrix Editor
| Author | Message | ||||
| Nimue Guru Joined: 06/08/2020 Location: United KingdomPosts: 449 |
I'm using an 8 x 8 WS2182b square of LEDs in my robot project along with the LCD panel. I wanted an "easy" way to code images on the LEDs - so I used P5.JS as I'm familar with it and there are lots of resources on the web, and honestly AI is greate at javascript code. The editor is here: https://editor.p5js.org/gpg342/sketches/mVEqP2wxR It looks like this. Click on the "RUN" icon (top left) to activate it. ![]() If you click on Save MMbasic - it will save out the image as 8x8 as data statements - ready to use in an MMBasic program. This produces an 8 x 8 image ready for me to use on the LED panel. It could of course be used to scale onto the LCD panel... ![]() Entropy is not what it used to be |
||||
Bill.b![]() Senior Member Joined: 25/06/2011 Location: AustraliaPosts: 247 |
is this what you require? ![]() Option autorun on OPTION DEFAULT NONE OPTION EXPLICIT DIM integer loop1 diM integer LEDcolour1(64) SetPin GP5, DOUT do for loop1 = 0 to 63 read LEDcolour1(loop1) next loop1 senddata restore loop sub senddata Bitbang WS2812 B, GP5, 64, LEDcolour1() end sub Data &h000000,&h000000,&h000000,&h303000,&h303000,&h000000,&h000000,&h000000 Data &h000000,&h303000,&h303000,&h303000,&h303000,&h303000,&h303000,&h000000 Data &h000000,&h303000,&h000000,&h303000,&h303000,&h000000,&h303000,&h000000 Data &h303000,&h303000,&h303000,&h303000,&h303000,&h303000,&h303000,&h303000 Data &h303000,&h303000,&h000000,&h303000,&h303000,&h000000,&h303000,&h303000 ' Data &h000000,&h303000,&h000000,&h000000,&h000000,&h000000,&h303000,&h000000 Data &h000000,&h303000,&h303000,&h303000,&h303000,&h303000,&h303000,&h000000 Data &h000000,&h000000,&h000000,&h303000,&h303000,&h000000,&h000000,&h000000 . Bill Edited 2026-08-23 08:30 by Bill.b In the interests of the environment, this post has been constructed entirely from recycled electrons. |
||||
| Nimue Guru Joined: 06/08/2020 Location: United KingdomPosts: 449 |
Entropy is not what it used to be |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |