Skip to content

Commit 2497186

Browse files
committed
more screen work. draw function is locking things up, fix that later
1 parent 050bbf4 commit 2497186

6 files changed

Lines changed: 382 additions & 25 deletions

File tree

firmware/src/keypad.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ use embassy_time::{Duration, Instant};
1212
use jukebox_util::peripheral::JBInputs;
1313

1414
static KEYPAD_KEYS: [AtomicBool; 12] = [const { AtomicBool::new(false) }; 12];
15-
pub fn get_inputs() -> JBInputs {
15+
pub fn get_raw_inputs() -> [bool; 16] {
1616
let mut inputs = [false; 16];
1717
KEYPAD_KEYS.iter().enumerate().for_each(|(i, k)| {
1818
inputs[i] = k.load(core::sync::atomic::Ordering::Relaxed);
1919
});
20-
JBInputs::KeyPad(inputs.into())
20+
inputs
21+
}
22+
pub fn get_inputs() -> JBInputs {
23+
JBInputs::KeyPad(get_raw_inputs().into())
2124
}
2225

2326
const POLL_TIME: Duration = Duration::from_millis(10);

firmware/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use embassy_rp::{
2626
};
2727
use static_cell::StaticCell;
2828

29-
static mut CORE1_STACK: Stack<16384> = Stack::new();
29+
static mut CORE1_STACK: Stack<40_000> = Stack::new();
3030
static EXECUTOR0: StaticCell<Executor> = StaticCell::new();
3131
static EXECUTOR1: StaticCell<Executor> = StaticCell::new();
3232

0 commit comments

Comments
 (0)