mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-13 12:12:16 -04:00
"CW generator" and "Whistle" merged in "Signal generator"
Added wave shape selection and tone frequency auto-update Converted color icons to B&W
This commit is contained in:
parent
93c5959df6
commit
58f113d153
38 changed files with 758 additions and 374 deletions
|
@ -23,6 +23,7 @@
|
|||
#include "baseband_api.hpp"
|
||||
|
||||
#include "audio.hpp"
|
||||
#include "tonesets.hpp"
|
||||
#include "dsp_iir_config.hpp"
|
||||
|
||||
#include "portapack_shared_memory.hpp"
|
||||
|
@ -228,6 +229,20 @@ void set_spectrum(const size_t sampling_rate, const size_t trigger) {
|
|||
send_message(&message);
|
||||
}
|
||||
|
||||
void set_siggen_tone(const uint32_t tone) {
|
||||
const SigGenToneMessage message {
|
||||
TONES_F2D(tone)
|
||||
};
|
||||
send_message(&message);
|
||||
}
|
||||
|
||||
void set_siggen_config(const uint32_t bw, const uint32_t shape, const uint32_t duration) {
|
||||
const SigGenConfigMessage message {
|
||||
bw, shape, duration * TONES_SAMPLERATE
|
||||
};
|
||||
send_message(&message);
|
||||
}
|
||||
|
||||
static bool baseband_image_running = false;
|
||||
|
||||
void run_image(const portapack::spi_flash::image_tag_t image_tag) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue