You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/chapter4/3output.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ CircuitVerse features different output elements listed below:
16
16
6.[HexDisplay](#hexdisplay)
17
17
7.[SevenSegDisplay](#sevensegdisplay)
18
18
8.[SixteenSegDisplay](#sixteensegdisplay)
19
+
9.[RGB LED Matrix](#rgb-led-matrix)
19
20
20
21
## Output
21
22
@@ -198,3 +199,34 @@ You can verify the behavior of the **SixteenSegDisplay** circuit element in the
198
199
</iframe>
199
200
200
201
As opposed to the **HexDisplay** and **SevenSegDisplay** circuit elements, the main advantage of using a **SixteenSegDisplay** is that multiple segments can be used to create numbers and letters. However, it requires double the input of the **SevenSegDisplay** and quadruple the input of the **HexDisplay**.
202
+
203
+
## RGB Led Matrix
204
+
205
+
The **RGB Led Matrix** element represents a rectangular array of RGB pixels and is ideal for simulating programmable LED matrices and pixel displays. Each pixel stores a 24-bit color (8 bits per red, green and blue channels).
206
+
207
+
Key ways to set pixels:
208
+
209
+
- Method 1 — Column color pins: drive a 24-bit color into a column's `columnColor` pin while enabling one or more rows with the left-side `rowEnable` pins to fill that color across the selected rows for that column.
210
+
- Method 2 — Row/Column enable + color pin: enable a row (left-side `rowEnable`) and a column (bottom `columnEnable`) and provide a 24-bit color on the element's `COLOR` input to write that color to the intersection pixel(s).
211
+
- Method 3 — Single-pixel write: supply a 24-bit color to the `COLOR` input and provide the target coordinates via the `ROW` and `COLUMN` index inputs (these are integer values encoded as binary on the node). When `ROW` and `COLUMN` are present and valid, the matrix writes the color to that single pixel.
212
+
213
+
Color format and examples:
214
+
215
+
- Colors are packed as a single 24-bit unsigned integer where red occupies the top 8 bits, green the middle 8 bits and blue the low 8 bits. In code/pseudocode: `color = (R << 16) | (G << 8) | B`.
216
+
- Example: pure red `R=255,G=0,B=0` → hex `0xFF0000` → decimal `16711680`.
-**LED Size:** choose the relative pixel size (small / medium / large) used for layout.
224
+
-**Toggle Grid:** show or hide a grid around pixels for easier debugging.
225
+
226
+
Tips:
227
+
228
+
- Use the column color pins to quickly paint whole columns by driving a 24-bit value to each column.
229
+
- To program images or animations, combine counters (for row/column indices), a clock, and a constant or register that provides the 24-bit color values (packed as explained above).
230
+
- When saving a circuit, the current color of every pixel is persisted, so previewing saved designs will display the saved image.
0 commit comments