GGBRW / BOOLR

A digital logic simulator
http://boolr.me
Other
612 stars 65 forks source link

LED matrix #49

Open YMandarin opened 4 years ago

YMandarin commented 4 years ago

Could you please add some sort of LED matrix, so we can create screens?

KostyaCholak commented 4 years ago

I've created this component in my fork https://github.com/JPro173/BOOLR/tree/add-led-array

Screenshot 2020-09-05 at 22 46 25

I will create pull request with other components soon. We can discuss matrix pixel design, I though of the standard design with dots instead of squares, but dots look too separated. I've no idea how to describe logic of the component in GUI, so I'll describe it here: Chip operates on horizontal pixel lines (8 pixels in line), so we use 8 data pins and 3 address line pins instead of 64 data pins

Selecting the line: Top line at the address 0, (ADDR0 = 0, ADDR1 = 0, ADDR2 = 0) Second top line at the address 1, (ADDR0 = 1, ADDR1 = 0, ADDR2 = 0) Bottom top line at the address 7, (ADDR0 = 1, ADDR1 = 1, ADDR2 = 1)

Chip has buffer memory and display memory, so you can write multiple lines separately and then push data to display

CE - Chip Enable, when off no writes possible and pixel won't light up, when on - operate normally WE - Write Enable, write data to buffer ADDR0,1,2 - Address Bits, Active line address bits PUSH - Push data from buffer memory to display memory 0-7 - Data pins