Hi,
i am trying to figure out how to port code using Digital PWM to the R4-M. The code i used on the R3 made use of this library (frequency-pwm) which allows pin assignment and pwm setting of duty cycle as well as frequency. The goal is to drive a fan on low frequency PWM through a cny-7 optocoupler and MOSFET.
Original code for the R3.
https://code.google.com/archive/p/arduino-pwm-frequency-library/
i have found documentation on the processor here
but was wondering if anyone has written a new pwm library with this capability for the R4 yet.
thanks
Jan van Hulzen