Skip to content

Commit 3f26e44

Browse files
committed
ledmatrix: Explain DIP switch functions
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 55db09f commit 3f26e44

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

ledmatrix/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,31 @@ Any other command will also wake up the device.
217217

218218
The idle timer will send the device to sleep after a configured timeout (default 60 seconds).
219219
The idle timer is reset once the device wakes up or once it receives a command.
220+
221+
## DIP Switch
222+
223+
LED Matrix hardware since DVT2 (September 2023) has a DIP switch with two
224+
switches, let's call them DIP1 and DIP2.
225+
226+
###### DIP2 (Bootloader)
227+
228+
DIP2 is the bootloader switch. To enter bootloader mode follow these steps:
229+
230+
1. Unplug module and flip the switch to ON
231+
2. Plug module back in, it will appear as a flash drive with the name `RPI-RP2`
232+
3. Copy the firmware `.uf2` file onto that drive, it will automatically flash and reappear as a flash drive
233+
4. To exit bootloader mode, unplug the module to flip the switch back, and plug it back in
234+
5. Now the new firmware should be running
235+
236+
###### DIP1 (General Purpose)
237+
238+
DIP1 could serve many purposes. Currently it is configured to enable the debug mode.
239+
When debug mode is enabled and the module goes to sleep, it will not turn the LEDs off to save power.
240+
Instead it will display the reason why it went to sleep. This is useful for debugging module and host system behavior.
241+
242+
Sleep Reasons can be:
243+
244+
- `SLEEP#` pin: `SLP#`
245+
- USB Suspend: `USB`
246+
- Command: `CMD`
247+
- Idle timer: `TIME`

0 commit comments

Comments
 (0)