File tree Expand file tree Collapse file tree 5 files changed +23
-3
lines changed Expand file tree Collapse file tree 5 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -14,3 +14,6 @@ target/
14
14
! .vscode /settings.json
15
15
16
16
* .uf2
17
+
18
+ # Panic dump
19
+ message.bin
Original file line number Diff line number Diff line change 1
1
# Lotus LED Matrix Module
2
2
3
3
It's a 9x34 (306) LED matrix, controlled by RP2040 MCU and IS31FL3741A LED controller.
4
+
4
5
Connection to the host system is via USB 2.0 and currently there is a USB Serial API to control it without reflashing.
5
6
6
7
Rust project setup based off of: https://github.com/rp-rs/rp2040-project-template
7
8
8
9
## Features
9
10
10
11
- Reset into bootloader when firmware crashes/panics
11
- - API over USB ACM Serial Port - Requires not Drivers on Windows and Linux
12
+ - API over USB ACM Serial Port - Requires no Drivers on Windows and Linux
12
13
- Display various pre-programmed patterns
13
14
- Light up a percentage of the screen
14
15
- Change brightness
@@ -29,7 +30,7 @@ Future features:
29
30
30
31
## Control from the host
31
32
32
- Requirements: Python and [ PySimpleGUI] ( https://www.pysimplegui.org ) .
33
+ Requirements: Python, [ PySimpleGUI] ( https://www.pysimplegui.org ) and optionally [ pillow ] ( https://pillow.readthedocs.io/en/stable/index.html )
33
34
34
35
Use ` control.py ` . Either the commandline, see ` control.py --help ` or the graphical version: ` control.py --gui `
35
36
@@ -52,6 +53,23 @@ options:
52
53
--panic Crash the firmware (TESTING ONLY)
53
54
```
54
55
56
+ Examples
57
+
58
+ ``` sh
59
+ # Launch graphical application
60
+ ./control.py --gui
61
+
62
+ # Show current time and keep updating it
63
+ ./control.py --clock
64
+
65
+ # Draw PNG or GIF
66
+ ./control.py --image stripe.gif
67
+ ./control.py --image stripe.png
68
+
69
+ # Change brightness (0-255)
70
+ ./control.py --brightness 50
71
+ ```
72
+
55
73
## Building
56
74
57
75
Dependencies: Rust
Original file line number Diff line number Diff line change @@ -350,7 +350,6 @@ def number(num):
350
350
0 , 0 , 0 , 0 , 0 ,
351
351
]
352
352
}
353
- print (numbers [num ])
354
353
return numbers [num ]
355
354
356
355
You can’t perform that action at this time.
0 commit comments