From 7b260d100e1c2a4a43c39c1ff4e081a980d58343 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Mon, 15 Jul 2019 22:54:59 +0200 Subject: [PATCH] update wemos32matrix.h --- src/hal/wemos32matrix.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/hal/wemos32matrix.h b/src/hal/wemos32matrix.h index 737f9eec..66935f00 100644 --- a/src/hal/wemos32matrix.h +++ b/src/hal/wemos32matrix.h @@ -26,11 +26,22 @@ #define LED_MATRIX_LD_74138 26 // LD (or D) #define LED_MATRIX_DATA_R1 33 // R1 (or R0) -// CLK: The clock signal moves data bits from pin R1 ("red") in the shift registers -// LAT: The latch signal enables LEDs according to shift register contents -// Line Selects: LA, LB, LC, LD select which two rows of the display are currently lit +// CLK: The clock signal moves the data bits from pin R1 ("red") in the shift registers +// LAT: The latch signal enables LEDs according to the shift register's contents +// Line Selects: LA, LB, LC, LD select which rows of the display are currently lit (0 .. 15) // OE: Output enable switches the LEDs on/off while transitioning from one row to the next +/* +How it works: + +1. clock out 8 bytes for columns via R1 and CLK (8 * 8 bit -> 64 columns) +2. OE disable (LEDs off) +3. select line to lit with LA/LB/LC/LD hex coded (4 bit -> 16 rows) +4. latch data from shift registers to columns +5. OE enable (LEDs on) +6. repeat with step1 for next line +*/ + #define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature #endif \ No newline at end of file