Code cleanup
This commit is contained in:
parent
41ce7d3b40
commit
94b24fa0ac
@ -1,4 +1,4 @@
|
|||||||
//! Project: CMtec CMDR joystick 24
|
//! Project: CMtec CMDR joystick 25
|
||||||
//! Date: 2023-08-01
|
//! Date: 2023-08-01
|
||||||
//! Author: Christoffer Martinsson
|
//! Author: Christoffer Martinsson
|
||||||
//! Email: cm@cmtec.se
|
//! Email: cm@cmtec.se
|
||||||
@ -53,6 +53,20 @@
|
|||||||
// | |CH1M |CH12Z|CH1P | |CH3M |CH34Z|CH3P | |
|
// | |CH1M |CH12Z|CH1P | |CH3M |CH34Z|CH3P | |
|
||||||
// | | - | |CH4M | |
|
// | | - | |CH4M | |
|
||||||
// ---------------------------------------------------------------
|
// ---------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Config Layer (holding CONFIG button)
|
||||||
|
// ---------------------------------------------------------------
|
||||||
|
// |BOOT L| CAL U| | CONFIG | | USB L|ELRS U|
|
||||||
|
// ---------------------------------------------------------------
|
||||||
|
// | | THL-| THL+| - | | - | - | - | |
|
||||||
|
// | |
|
||||||
|
// | | - | | - | |
|
||||||
|
// | | - | | - | |
|
||||||
|
// | -/- -/- |
|
||||||
|
// | | - | | - | |
|
||||||
|
// | | - | - | - | | - | - | - | |
|
||||||
|
// | | - | | - | |
|
||||||
|
// ---------------------------------------------------------------
|
||||||
|
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![no_main]
|
#![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 DEBOUNCE: u8 = 10;
|
||||||
|
|
||||||
pub const RELEASE_RIMEOUT: u16 = 30;
|
pub const RELEASE_RIMEOUT: u16 = 30; // => 300ms
|
||||||
|
|
||||||
// Public types
|
// Public types
|
||||||
#[derive(Copy, Clone, Default)]
|
#[derive(Copy, Clone, Default)]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user