no PWM on MEGA2560 timer 2...with PWM.h v5..since arduino 1.6.0
hello,
after installing new ide arduino software....all versions since 1.60...up 1.6.9 not working ....on timer 2 ...pin 9 ...on mega 2560....could me
pinmode(9,output);
inittimerssafe();
setpinfrequencysafe(9,10000);
pwmwrite(9,127);
same pwm.h lib on lower arduino versions 1.0.5-r2 working
after installing new ide arduino software....all versions since 1.60...up 1.6.9 not working ....on timer 2 ...pin 9 ...on mega 2560....could me
pinmode(9,output);
inittimerssafe();
setpinfrequencysafe(9,10000);
pwmwrite(9,127);
same pwm.h lib on lower arduino versions 1.0.5-r2 working
the library depend on 2012... might not current.
i mess around timer registers manually want.
https://www.arduino.cc/en/tutorial/secretsofarduinopwm
http://playground.arduino.cc/main/timerpwmcheatsheet
i mess around timer registers manually want.
https://www.arduino.cc/en/tutorial/secretsofarduinopwm
http://playground.arduino.cc/main/timerpwmcheatsheet
Arduino Forum > Using Arduino > Programming Questions > no PWM on MEGA2560 timer 2...with PWM.h v5..since arduino 1.6.0
arduino
Comments
Post a Comment