We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7710b6d commit bd0e969Copy full SHA for bd0e969
src/drivers/hardware_specific/atmega/atmega2560_mcu.cpp
@@ -2,8 +2,12 @@
2
3
#if defined(__AVR_ATmega2560__)
4
5
+#define _PWM_FREQUENCY 32000
6
+#define _PWM_FREQUENCY_MAX 32000
7
+#define _PWM_FREQUENCY_MIN 4000
8
+
9
// set pwm frequency to 32KHz
-void _pinHighFrequency(const int pin){
10
+void _pinHighFrequency(const int pin, const long frequency){
11
bool high_fq = false;
12
// set 32kHz frequency if requested freq is higher than the middle of the range (14kHz)
13
// else set the 4kHz
0 commit comments