mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-21 13:59:12 +00:00
Added waveform widget and a frequency field in encoders tx
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user