I want six pins pwm output.
I use your library.
The pin6 and pin11 always duty=100%.
Why they didn`t work correctly like other pin?
Here is my code,please give me an answer,thanks.
#include <PWM.h>
void setup()
{
InitTimers();
Serial.begin(115200);
Serial.println();
Timer0_SetFrequency(400000);
Timer0_SetPrescaler(ps_8);
Timer1_SetFrequency(50000);
Timer2_SetFrequency(400000);
Timer2_SetPrescaler(psalt_8);
}
void loop()
{
int x=32768;
pwmWrite(5,128);//timer0
pwmWrite(6,128);
pwmWriteHR(9,x);//timer1
pwmWriteHR(10,x);
pwmWrite(3,128);//timer2
pwmWrite(11,128);
Serial.println("High Resolution PWM");
}