mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-06 08:45:01 -04:00
Added waveform widget and a frequency field in encoders tx
This commit is contained in:
parent
be3d477352
commit
a0c248d567
11 changed files with 180 additions and 72 deletions
|
@ -28,7 +28,6 @@
|
|||
#include "message.hpp"
|
||||
#include "volume.hpp"
|
||||
#include "audio.hpp"
|
||||
//#include "transmitter_model.hpp"
|
||||
#include "receiver_model.hpp"
|
||||
#include "portapack.hpp"
|
||||
|
||||
|
@ -54,6 +53,7 @@ private:
|
|||
//rf::Frequency f;
|
||||
|
||||
void generate_message(char * text);
|
||||
void transmit_done();
|
||||
|
||||
const char foxhunt_codes[11][3] = {
|
||||
{ 'M', 'O', 'E' }, // -----.
|
||||
|
@ -192,6 +192,15 @@ private:
|
|||
{ 160, 260, 64, 32 },
|
||||
"Exit"
|
||||
};
|
||||
|
||||
MessageHandlerRegistration message_handler_tx_done {
|
||||
Message::ID::TXDone,
|
||||
[this](const Message* const p) {
|
||||
const auto message = *reinterpret_cast<const TXDoneMessage*>(p);
|
||||
if (message.done)
|
||||
transmit_done();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
} /* namespace ui */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue