fw-rust: Make Si5351 useable
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
In order to make the Si5351 configurable add some needed assets, create the ability to print the frequency with selected digits and add a channel screen.
This commit is contained in:
parent
7f14974146
commit
c36581e703
5 changed files with 430 additions and 119 deletions
|
@ -146,6 +146,12 @@ const SYM_E: [&[u8]; 2] = [
|
|||
&[0x3F, 0x3F, 0x31, 0x31, 0x30, 0x30],
|
||||
];
|
||||
|
||||
// TODO: Use https://github.com/rust-lang/rust/issues/85077 when stabilized
|
||||
const SYM_F: [&[u8]; 2] = [
|
||||
&[0xFC, 0xFC, 0x8C, 0x8C, 0x0C, 0x0C],
|
||||
&[0x3F, 0x3F, 0x01, 0x01, 0x00, 0x00],
|
||||
];
|
||||
|
||||
// TODO: Use https://github.com/rust-lang/rust/issues/85077 when stabilized
|
||||
const SYM_G: [&[u8]; 2] = [
|
||||
&[0xF8, 0xFC, 0x0C, 0x0C, 0x3C, 0x38],
|
||||
|
@ -191,6 +197,12 @@ const SYM_P: [&[u8]; 2] = [
|
|||
&[0x3F, 0x3F, 0x01, 0x01, 0x01, 0x00],
|
||||
];
|
||||
|
||||
// TODO: Use https://github.com/rust-lang/rust/issues/85077 when stabilized
|
||||
const SYM_Q: [&[u8]; 2] = [
|
||||
&[0xF8, 0xFC, 0x0C, 0x0C, 0xFC, 0xF8],
|
||||
&[0x1F, 0x3F, 0x30, 0x38, 0x7F, 0x6F],
|
||||
];
|
||||
|
||||
// TODO: Use https://github.com/rust-lang/rust/issues/85077 when stabilized
|
||||
const SYM_R: [&[u8]; 2] = [
|
||||
&[0xFC, 0xFC, 0x8C, 0x8C, 0xFC, 0xF8],
|
||||
|
@ -215,6 +227,12 @@ const SYM_U: [&[u8]; 2] = [
|
|||
&[0x1F, 0x3F, 0x30, 0x30, 0x3F, 0x1F],
|
||||
];
|
||||
|
||||
// TODO: Use https://github.com/rust-lang/rust/issues/85077 when stabilized
|
||||
const SYM_UNDERSCORE: [&[u8]; 2] = [
|
||||
&[0x00, 0x00, 0x00, 0x00, 0x00],
|
||||
&[0x30, 0x30, 0x30, 0x30, 0x30],
|
||||
];
|
||||
|
||||
// TODO: Use https://github.com/rust-lang/rust/issues/85077 when stabilized
|
||||
const SYM_INVALID: [&[u8]; 2] = [
|
||||
&[0x80, 0xE0, 0x98, 0xCC, 0x4C, 0x18, 0xE0, 0x80],
|
||||
|
@ -223,54 +241,54 @@ const SYM_INVALID: [&[u8]; 2] = [
|
|||
|
||||
// TODO: Use https://github.com/rust-lang/rust/issues/85077 when stabilized
|
||||
pub const SYMBOL_TABLE: [&[&[u8]; 2]; 50] = [
|
||||
&SYM_DOT, // '.'
|
||||
&SYM_INVALID, // '/'
|
||||
&SYM_0, // '0'
|
||||
&SYM_1, // '1'
|
||||
&SYM_2, // '2'
|
||||
&SYM_3, // '3'
|
||||
&SYM_4, // '4'
|
||||
&SYM_5, // '5'
|
||||
&SYM_6, // '6'
|
||||
&SYM_7, // '7'
|
||||
&SYM_8, // '8'
|
||||
&SYM_9, // '9'
|
||||
&SYM_COLON, // ':'
|
||||
&SYM_INVALID, // ';'
|
||||
&SYM_INVALID, // '<'
|
||||
&SYM_INVALID, // '='
|
||||
&SYM_INVALID, // '>'
|
||||
&SYM_INVALID, // '?'
|
||||
&SYM_INVALID, // '@'
|
||||
&SYM_A, // 'A'
|
||||
&SYM_B, // 'B'
|
||||
&SYM_C, // 'C'
|
||||
&SYM_INVALID, // 'D'
|
||||
&SYM_E, // 'E'
|
||||
&SYM_INVALID, // 'F'
|
||||
&SYM_G, // 'G'
|
||||
&SYM_H, // 'H'
|
||||
&SYM_I, // 'I'
|
||||
&SYM_INVALID, // 'J'
|
||||
&SYM_K, // 'K'
|
||||
&SYM_L, // 'L'
|
||||
&SYM_INVALID, // 'M'
|
||||
&SYM_N, // 'N'
|
||||
&SYM_O, // 'O'
|
||||
&SYM_P, // 'P'
|
||||
&SYM_INVALID, // 'Q'
|
||||
&SYM_R, // 'R'
|
||||
&SYM_S, // 'S'
|
||||
&SYM_T, // 'T'
|
||||
&SYM_U, // 'U'
|
||||
&SYM_INVALID, // 'V'
|
||||
&SYM_INVALID, // 'W'
|
||||
&SYM_INVALID, // 'X'
|
||||
&SYM_INVALID, // 'Y'
|
||||
&SYM_INVALID, // 'Z'
|
||||
&SYM_INVALID, // '['
|
||||
&SYM_INVALID, // '\'
|
||||
&SYM_INVALID, // ']'
|
||||
&SYM_INVALID, // '^'
|
||||
&SYM_INVALID, // '_'
|
||||
&SYM_DOT, // '.'
|
||||
&SYM_INVALID, // '/'
|
||||
&SYM_0, // '0'
|
||||
&SYM_1, // '1'
|
||||
&SYM_2, // '2'
|
||||
&SYM_3, // '3'
|
||||
&SYM_4, // '4'
|
||||
&SYM_5, // '5'
|
||||
&SYM_6, // '6'
|
||||
&SYM_7, // '7'
|
||||
&SYM_8, // '8'
|
||||
&SYM_9, // '9'
|
||||
&SYM_COLON, // ':'
|
||||
&SYM_INVALID, // ';'
|
||||
&SYM_INVALID, // '<'
|
||||
&SYM_INVALID, // '='
|
||||
&SYM_INVALID, // '>'
|
||||
&SYM_INVALID, // '?'
|
||||
&SYM_INVALID, // '@'
|
||||
&SYM_A, // 'A'
|
||||
&SYM_B, // 'B'
|
||||
&SYM_C, // 'C'
|
||||
&SYM_INVALID, // 'D'
|
||||
&SYM_E, // 'E'
|
||||
&SYM_F, // 'F'
|
||||
&SYM_G, // 'G'
|
||||
&SYM_H, // 'H'
|
||||
&SYM_I, // 'I'
|
||||
&SYM_INVALID, // 'J'
|
||||
&SYM_K, // 'K'
|
||||
&SYM_L, // 'L'
|
||||
&SYM_INVALID, // 'M'
|
||||
&SYM_N, // 'N'
|
||||
&SYM_O, // 'O'
|
||||
&SYM_P, // 'P'
|
||||
&SYM_Q, // 'Q'
|
||||
&SYM_R, // 'R'
|
||||
&SYM_S, // 'S'
|
||||
&SYM_T, // 'T'
|
||||
&SYM_U, // 'U'
|
||||
&SYM_INVALID, // 'V'
|
||||
&SYM_INVALID, // 'W'
|
||||
&SYM_INVALID, // 'X'
|
||||
&SYM_INVALID, // 'Y'
|
||||
&SYM_INVALID, // 'Z'
|
||||
&SYM_INVALID, // '['
|
||||
&SYM_INVALID, // '\'
|
||||
&SYM_INVALID, // ']'
|
||||
&SYM_INVALID, // '^'
|
||||
&SYM_UNDERSCORE, // '_'
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue