Made minimal audio app with FMSynth
This commit is contained in:
parent
a58239e0cc
commit
ed5e153216
3 changed files with 1 additions and 59 deletions
|
|
@ -1,6 +0,0 @@
|
||||||
#ifndef __APP_DEFS_HPP__
|
|
||||||
#define __APP_DEFS_HPP__
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif // __APP_DEFS_HPP__
|
|
||||||
|
|
@ -1,52 +0,0 @@
|
||||||
#include "src/memllib/audio/AudioDriver.hpp"
|
|
||||||
#include "src/memllib/memlnaut/Pins.hpp"
|
|
||||||
#include "src/memllib/memlnaut/MEMLNaut.hpp"
|
|
||||||
#include "src/memllib/memlnaut/MEMLNautTest.hpp"
|
|
||||||
|
|
||||||
#include <memory>
|
|
||||||
|
|
||||||
volatile bool core1_ready = false;
|
|
||||||
|
|
||||||
void setup()
|
|
||||||
{
|
|
||||||
// Initialise main serial monitor
|
|
||||||
Serial.begin(115200);
|
|
||||||
// Initialise pins
|
|
||||||
Pins::initializePins();
|
|
||||||
// Initialise MEMLNaut singleton
|
|
||||||
MEMLNaut::Initialize();
|
|
||||||
MEMLNautTest::Setup();
|
|
||||||
|
|
||||||
Serial.println("Core 0: Waiting for Core 1 setup...");
|
|
||||||
while (!core1_ready) {
|
|
||||||
delay(1);
|
|
||||||
}
|
|
||||||
Serial.println("Core 0: Starting main loop");
|
|
||||||
}
|
|
||||||
|
|
||||||
void loop()
|
|
||||||
{
|
|
||||||
MEMLNaut::Instance()->loop();
|
|
||||||
delay(10);
|
|
||||||
|
|
||||||
// Print a dot every second
|
|
||||||
static unsigned long lastPrint = 0;
|
|
||||||
if (lastPrint++ > 100) {
|
|
||||||
Serial.println(".");
|
|
||||||
lastPrint = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void setup1()
|
|
||||||
{
|
|
||||||
Serial.println("Core 1: Starting setup");
|
|
||||||
AudioDriver_Output::Setup();
|
|
||||||
AudioDriver_Output::SetCallback(AudioDriver_Output::silence_);
|
|
||||||
core1_ready = true;
|
|
||||||
Serial.println("Core 1: Setup complete");
|
|
||||||
}
|
|
||||||
|
|
||||||
void loop1()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit e4ededc17360b424df228e7a3155210b075a80ee
|
Subproject commit f03032f742e0a85f78cfa21bd8f519465ac5fd64
|
||||||
Loading…
Reference in a new issue