add reset sketch and reorganize files

This commit is contained in:
r4
2022-04-19 16:44:54 +02:00
parent 4e90b217cb
commit 9420eb8293
9 changed files with 128 additions and 91 deletions

26
spybug/aaa_config.hh Normal file
View File

@@ -0,0 +1,26 @@
#pragma once
/************************
BEGIN USER CONFIGURATION
************************/
//#define DEBUG_RECORDING
#define PIN_COMPONENT_SWITCH 2 /* Use a digital signal to switch on/off the microphone and SD card for less power draw. */
#define COMPONENT_SWITCH_ON HIGH
#define SAMPLE_MODE_U8
//#define SAMPLE_MODE_S16
//#define ADC_PRESCALE_16 /* Up to ~60kHz. */
//#define ADC_PRESCALE_32 /* Up to ~27kHz. */
#define ADC_PRESCALE_64 /* Up to ~18kHz. */
//#define U8_AMPLIFY_X2 /* (U8 sampling mode only) amplify audio by factor 2. */
#define ADC_CHANNEL AdcChannel0
#define TIMER_COMPARE 1000 /* 16MHz / 1000 = 16kHz. */
#define FLUSH_SAMPLES 64000 /* Flush WAV file every n samples. */
#define PIN_SS 10
/**********************
END USER CONFIGURATION
**********************/