From 8dc6b01c0e2b865d8b2dcd318a5c3f0cbd9f364d Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Thu, 16 Feb 2023 08:14:33 +0800 Subject: [PATCH] v0.1.1 Signed-off-by: Daniel Schaefer --- Cargo.toml | 12 +++--------- src/control.rs | 2 +- src/main.rs | 2 ++ 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index efa7cbe..04bdc9e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "led_matrix_fw" -version = "0.1.0" +version = "0.1.1" [dependencies] cortex-m = { version = "0.7", features = ["critical-section-single-core"]} @@ -14,13 +14,7 @@ defmt-rtt = "0.4" #panic-probe = { version = "0.3", features = ["print-defmt"] } rp2040-panic-usb-boot = { git = "https://github.com/rwalkr/rp2040-panic-usb-boot" } -# We're using a Pico by default on this template -#rp-pico = "0.5" - -# but you can use any BSP. Uncomment this to use the pro_micro_rp2040 BSP instead -# sparkfun-pro-micro-rp2040 = "0.3" - -# If you're not going to use a Board Support Package you'll need these: +# Not using a BSP, we've got a LED Matrix BSP locally in this crate rp2040-hal = { version="0.7", features=["rt"] } rp2040-boot2 = "0.2" @@ -39,7 +33,7 @@ codegen-units = 1 debug = 2 debug-assertions = true incremental = false - # To allow single-stepping through code use 0. Will cause timing issues, though +# To allow single-stepping through code use 0. Will cause timing issues, though opt-level = 3 overflow-checks = true diff --git a/src/control.rs b/src/control.rs index 38df689..5de1495 100644 --- a/src/control.rs +++ b/src/control.rs @@ -142,7 +142,7 @@ pub fn handle_command(command: &Command, state: &mut State, matrix: &mut Foo) { reset_to_usb_boot(0, 0); } Command::Sleep(_go_sleeping) => { - //sleep(go_sleeping, state, matrix); + // Handled elsewhere } Command::Animate(a) => state.animate = *a, Command::Panic => panic!("Ahhh"), diff --git a/src/main.rs b/src/main.rs index 4642b7a..22999d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -204,6 +204,8 @@ fn main() -> ! { .manufacturer("Framework") .product("Lotus LED Matrix") .serial_number(serialnum) + .max_power(200) // Device uses roughly 164mW when all LEDs are at full brightness + .device_release(0x0011) // TODO: Assign dynamically based on crate version .device_class(USB_CLASS_CDC) .build();