Skip to content

Commit

Permalink
v0.1.1
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Schaefer <dhs@frame.work>
  • Loading branch information
JohnAZoidberg committed Feb 16, 2023
1 parent e8d8a06 commit 8dc6b01
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
12 changes: 3 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]}
Expand All @@ -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"

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 8dc6b01

Please sign in to comment.