From 94b24fa0ac89098ef2f1cbd6757f2c412208ec04 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sat, 20 Jul 2024 20:55:33 +0200 Subject: [PATCH] Code cleanup --- rp2040/src/main.rs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/rp2040/src/main.rs b/rp2040/src/main.rs index af1d038..6190c03 100644 --- a/rp2040/src/main.rs +++ b/rp2040/src/main.rs @@ -1,4 +1,4 @@ -//! Project: CMtec CMDR joystick 24 +//! Project: CMtec CMDR joystick 25 //! Date: 2023-08-01 //! Author: Christoffer Martinsson //! Email: cm@cmtec.se @@ -53,6 +53,20 @@ // | |CH1M |CH12Z|CH1P | |CH3M |CH34Z|CH3P | | // | | - | |CH4M | | // --------------------------------------------------------------- +// +// Config Layer (holding CONFIG button) +// --------------------------------------------------------------- +// |BOOT L| CAL U| | CONFIG | | USB L|ELRS U| +// --------------------------------------------------------------- +// | | THL-| THL+| - | | - | - | - | | +// | | +// | | - | | - | | +// | | - | | - | | +// | -/- -/- | +// | | - | | - | | +// | | - | - | - | | - | - | - | | +// | | - | | - | | +// --------------------------------------------------------------- #![no_std] #![no_main] @@ -127,7 +141,7 @@ pub const SENSITIVITY: i32 = (0.01 * ((1 << I32_FRAC_BITS) as f32)) as i32; pub const DEBOUNCE: u8 = 10; -pub const RELEASE_RIMEOUT: u16 = 30; +pub const RELEASE_RIMEOUT: u16 = 30; // => 300ms // Public types #[derive(Copy, Clone, Default)]