mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-09 23:22:33 -04:00
Finally found what was eating all the RAM :D
Re-enabled the tone key selector in Soundboard Soundboard now uses OutputStream, like Replay Constexpr'd a bunch of consts which were going to BSS section Exiting an app now goes back to main menu Cleaned up Message array
This commit is contained in:
parent
2d3a6313cc
commit
b29c1d9749
28 changed files with 419 additions and 279 deletions
|
@ -45,7 +45,7 @@ const uint32_t morse_symbols[5] = {
|
|||
size_t morse_encode(std::string& message, const uint32_t time_unit_ms,
|
||||
const uint32_t tone, uint32_t * const time_units);
|
||||
|
||||
const std::string foxhunt_codes[11] = {
|
||||
constexpr char foxhunt_codes[11][4] = {
|
||||
{ "MOE" }, // -----.
|
||||
{ "MOI" }, // -----..
|
||||
{ "MOS" }, // -----...
|
||||
|
@ -60,7 +60,7 @@ const std::string foxhunt_codes[11] = {
|
|||
};
|
||||
|
||||
// 0=dot 1=dash
|
||||
const uint16_t morse_ITU[63] = {
|
||||
constexpr uint16_t morse_ITU[63] = {
|
||||
// Code Size
|
||||
0b1010110000000110, // !: 101011- 110
|
||||
0b0100100000000110, // ": 010010- 110
|
||||
|
@ -127,7 +127,7 @@ const uint16_t morse_ITU[63] = {
|
|||
0b0011010000000110 // _: 001101- 110
|
||||
};
|
||||
|
||||
const uint16_t prosigns[12] = {
|
||||
constexpr uint16_t prosigns[12] = {
|
||||
// Code Size
|
||||
0b0001110000001001, // <SOS>: 000111000 1001
|
||||
0b0101000000000100, // <AA>: 0101----- 0100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue