Archive for 02 Sep 2011

PWM (Part 2)

Part 1, 2, 3, 4 The standard analogWrite() function fails to provide the choice for any base frequency. On the other hand, we may like to set any pin from any port as an output to the driving element (e.g transistor, MOS FET). The proposed code offers this flexibilty while keeping very simple. It comprises two functions: one for […]