change pwm frequency because of hearable noise

This commit is contained in:
interfisch 2019-10-12 23:43:53 +02:00
parent 4b513bf6be
commit 24361e2e12
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ HomieNode lightNode("light", "light");
*/
#define PWM_MAX 1023 //10 bit dac
#define PWM_FREQUENCY 1000 //default: 1000 Hz
#define PWM_FREQUENCY 500 //default: 1000 Hz
boolean enable=false;
float enable_fadevalue=0; //0=off, 1=on