fusion-zauberstab/firmware/include/app.h
Thomas Schmid 5140512b56 add app framework
add a framework to allow for multiple applications and switching between
them

Signed-off-by: Thomas Schmid <tom@lfence.de>
2022-06-19 14:07:40 +02:00

25 lines
389 B
C

#pragma once
struct App {
void virtual init() = 0;
void virtual deinit() = 0;
void virtual loop() = 0;
};
struct BeatDetectApp : public App {
void init();
void deinit();
void loop();
};
struct VuMeterApp: public App {
void init();
void deinit();
void loop();
};
struct FFTTestApp: public App {
void init();
void deinit();
void loop();
};