implemented Find a Friend with Frequencydetection using FFT

This commit is contained in:
hhaupt
2024-05-01 22:53:55 +02:00
parent 5a31eb6630
commit f41de7378f
13 changed files with 171353 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ void InfraredLED::begin(void){
.speed_mode = pwmSpeedMode,
.duty_resolution = LEDC_TIMER_10_BIT,
.timer_num = this->timer,
.freq_hz = 1,
.freq_hz = 800,
.clk_cfg = LEDC_AUTO_CLK
};
ledc_timer_config(&pwmTimer);
@@ -53,7 +53,7 @@ void InfraredLED::setState(bool state){
};
void InfraredLED::sendFrequency(uint16_t frequency){
ledc_set_freq(pwmSpeedMode,timer,frequency);
// ledc_set_freq(pwmSpeedMode,timer,frequency);
ledc_set_duty(pwmSpeedMode,channel,512);
ledc_update_duty(pwmSpeedMode,channel);
};