fw-rust: Prepare to implement Si5351 commands
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Show settings of Si5351 channels on home screen. Initialize I2c and Si5351.
This commit is contained in:
parent
134db298f6
commit
52bf0e6eec
8 changed files with 188 additions and 13 deletions
|
@ -43,6 +43,22 @@ pub const ONDERS_ORG: [[u8; 48]; 2] = [
|
|||
],
|
||||
];
|
||||
|
||||
// TODO: Use https://github.com/rust-lang/rust/issues/85077 when stabilized
|
||||
pub const ON: [u8; 11] = [
|
||||
0x00, 0x7E, 0x66, 0x7E, 0x00, 0x7E, 0x0C, 0x18, 0x30, 0x7E, 0x00,
|
||||
];
|
||||
|
||||
pub const OFF: [u8; 11] = [
|
||||
0x7E, 0x66, 0x7E, 0x00, 0x7E, 0x16, 0x16, 0x00, 0x7E, 0x16, 0x16,
|
||||
];
|
||||
|
||||
pub const PLL_A: [u8; 6] = [0x00, 0x7C, 0x12, 0x12, 0x7C, 0x00];
|
||||
|
||||
pub const PLL_B: [u8; 6] = [0x00, 0x7E, 0x4A, 0x4A, 0x74, 0x00];
|
||||
|
||||
// TODO: Use https://github.com/rust-lang/rust/issues/85077 when stabilized
|
||||
const SYM_DOT: [&[u8]; 2] = [&[0x00, 0x00], &[0x30, 0x30]];
|
||||
|
||||
// TODO: Use https://github.com/rust-lang/rust/issues/85077 when stabilized
|
||||
const SYM_0: [&[u8]; 2] = [
|
||||
&[0xF8, 0xFC, 0x0C, 0xFC, 0xF8],
|
||||
|
@ -206,7 +222,9 @@ const SYM_INVALID: [&[u8]; 2] = [
|
|||
];
|
||||
|
||||
// TODO: Use https://github.com/rust-lang/rust/issues/85077 when stabilized
|
||||
pub const SYMBOL_TABLE: [&[&[u8]; 2]; 48] = [
|
||||
pub const SYMBOL_TABLE: [&[&[u8]; 2]; 50] = [
|
||||
&SYM_DOT, // '.'
|
||||
&SYM_INVALID, // '/'
|
||||
&SYM_0, // '0'
|
||||
&SYM_1, // '1'
|
||||
&SYM_2, // '2'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue