Skip to content

Commit 8dc6b01

Browse files
committed
v0.1.1
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent e8d8a06 commit 8dc6b01

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

Cargo.toml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
edition = "2021"
33
name = "led_matrix_fw"
4-
version = "0.1.0"
4+
version = "0.1.1"
55

66
[dependencies]
77
cortex-m = { version = "0.7", features = ["critical-section-single-core"]}
@@ -14,13 +14,7 @@ defmt-rtt = "0.4"
1414
#panic-probe = { version = "0.3", features = ["print-defmt"] }
1515
rp2040-panic-usb-boot = { git = "https://github.com/rwalkr/rp2040-panic-usb-boot" }
1616

17-
# We're using a Pico by default on this template
18-
#rp-pico = "0.5"
19-
20-
# but you can use any BSP. Uncomment this to use the pro_micro_rp2040 BSP instead
21-
# sparkfun-pro-micro-rp2040 = "0.3"
22-
23-
# If you're not going to use a Board Support Package you'll need these:
17+
# Not using a BSP, we've got a LED Matrix BSP locally in this crate
2418
rp2040-hal = { version="0.7", features=["rt"] }
2519
rp2040-boot2 = "0.2"
2620

@@ -39,7 +33,7 @@ codegen-units = 1
3933
debug = 2
4034
debug-assertions = true
4135
incremental = false
42-
# To allow single-stepping through code use 0. Will cause timing issues, though
36+
# To allow single-stepping through code use 0. Will cause timing issues, though
4337
opt-level = 3
4438
overflow-checks = true
4539

src/control.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub fn handle_command(command: &Command, state: &mut State, matrix: &mut Foo) {
142142
reset_to_usb_boot(0, 0);
143143
}
144144
Command::Sleep(_go_sleeping) => {
145-
//sleep(go_sleeping, state, matrix);
145+
// Handled elsewhere
146146
}
147147
Command::Animate(a) => state.animate = *a,
148148
Command::Panic => panic!("Ahhh"),

src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ fn main() -> ! {
204204
.manufacturer("Framework")
205205
.product("Lotus LED Matrix")
206206
.serial_number(serialnum)
207+
.max_power(200) // Device uses roughly 164mW when all LEDs are at full brightness
208+
.device_release(0x0011) // TODO: Assign dynamically based on crate version
207209
.device_class(USB_CLASS_CDC)
208210
.build();
209211

0 commit comments

Comments
 (0)