mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-08-24 10:48:37 +02:00
implemented Find a Friend with Frequencydetection using FFT
This commit is contained in:
@@ -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);
|
||||
};
|
Reference in New Issue
Block a user