Add a "Restart" function for T-Embed + MIC Improvement + Wifi Deauth Bugfix#2085
Add a "Restart" function for T-Embed + MIC Improvement + Wifi Deauth Bugfix#2085bmorcelli merged 8 commits intoBruceDevices:devfrom
Conversation
|
The restart functioanlity would also be useful on other devices with buttons if you fancied implementing. |
Microphone Module - Refactoring ReportAuthor: Senape3000 Date: January 25, 2026 Version: 1.0 Modified Files
OverviewProduction-ready I2S microphone driver for ESP32 with FFT spectrum analyzer, WAV recording, configurable gain, stealth mode, and JavaScript API. Key Achievement: Zero memory leaks, exponential gain control, full-screen adaptive display. Key Changes1. Exponential Gain Controlfloat effectiveGain = pow(gain, 1.5f); // 2.0x → ~2.83x effective
Range: 0.5x - 4.0x (effective 0.35x - 8.0x)
Default: 2.0x for MEMS microphones Prevents: Harsh clipping distortion 2. Full-Screen Spectrum AnalyzerAuto-adapts to any screen size (128×64 to 320×240+) Dynamic scaling with bilinear interpolation Color-mapped heatmap visualization Configurable margins (5px or 10px) 3. Stealth ModesetBrightness(10, false); // Dim to 10%
tft.print("."); // Minimal indicator
Use cases: Covert recording, battery saving, OLED protection 4. Interactive GUIZero-flicker: Partial redraws only Controls: Time (5-300s/unlimited), Gain (0.5-4.0x), Stealth (ON/OFF) Feedback: Live timer with elapsed/total display 5. JavaScript APIconst result = mic.recordWav("/test.wav", {
maxMs: 10000, // Duration
gain: 20, // 2.0x (integer × 10)
stopOnSel: true // User abort
});Features: Headless recording, callbacks, filesystem auto-detect
esp_err_t err = i2s_channel_read(...);
if (err != ESP_OK) {
Serial.printf("I2S error: %s\n", esp_err_to_name(err));
break;
}
delay(1);
yield(); // Prevents WDT resets
Benefits Summary
Key Achievements:
Report generated: January 25, 2026 | Author: Senape3000 |
|
Api improved, here a script to test |
Add a "Restart" function for T-Embed (press BACK and OK for 5 second)
some small mod for SRIX lib (IPEX Antenna on t-Embed can't power srix tags)