Date: Fri, Jan 13, 2017
/// An enum to define the possible PWM ports in the RPICSIO Library.
/// Be aware that you need to ensure the PWM port is configured in /boot/config.txt
/// before this code will work. This is done by including one of the statements
/// You also need to disable the audio (it conflicts with the PWM system) by
/// commenting out the line in the config.txt as shown below
/// The pwm-with-clk statement will give you PWM0 on GPIO_18 which is Pin12 on the
/// RPi2 Header. The pwm-2chan-with-clk will give you the same PWM0 but also PWM1
/// which will be available on GPIO_19 which is Pin35 on the RPi2 header.
/// NOTE: these two overlays do not ship with the default raspbian (at this time)
/// you will need to download them from
/// without these drivers the PWM subsystem will not work. You cannot use the
/// drivers that ship with the default raspbian. They do not enable an internal
/// Always set the frequency first then the Pulse Width/duty cycle. The pulse
/// width is calculated from whatever frequency is currently set it is
/// not adjusted if the frequency is later changed.
/// 01 Dec 16 Cynic - Originally written
public enum PWMPortEnum
PWM_0, // output pin depends on dt_overlay
// GPIO_18, header Pin12 by default
PWM_1, // output pin depends on dt_overlay
// GPIO_19, header Pin35 by default