Playing notes over I2S

This commit is contained in:
Dejvino
2026-02-27 00:02:56 +01:00
parent 09a2d83c49
commit 659926986b
6 changed files with 61 additions and 268 deletions
+1 -15
View File
@@ -1,19 +1,5 @@
#include "SharedState.h"
// --- Global Objects ---
I2S i2s;
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
// --- Watchdog ---
volatile unsigned long lastLoop0Time = 0;
volatile unsigned long lastLoop1Time = 0;
volatile bool watchdogActive = false;
// --- Synthesizer State ---
volatile float g_note_frequency = 0.0;
volatile bool g_note_on = false;
volatile float g_volume = 0.5;
float g_phase = 0.0;
// --- Control State ---
int g_encoder_value = 0;
volatile bool watchdogActive = false;