Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:14 24 Aug 2026 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : 8 x 8 LED Matrix Editor

Author Message
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 449
Posted: 06:03pm 22 Aug 2026
Copy link to clipboard 
Print this post

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: Australia
Posts: 247
Posted: 10:22pm 22 Aug 2026
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 449
Posted: 07:28am 23 Aug 2026
Copy link to clipboard 
Print this post

  Bill.b said  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


Jinx (Do people still stay that or is it a 1970/80 thing??)

Exactly that - pretty spot on the same as mine.  I'm now tweaking to make them fade in / out and scroll across the screen.

Cheers
G


Bill

Entropy is not what it used to be
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026