robotics-masters / seesaw-circuitpython

I2C friend to expand capabilities of other chips - for CircuitPython.
GNU General Public License v3.0
1 stars 0 forks source link

PWM Implementation #4

Open wallarug opened 5 years ago

wallarug commented 5 years ago

Please implement the PWM functionality for CircuitPython Seesaw.

seesaw/include/RegisterMap.h

//* ================ Timer ===================== *//
#define SEESAW_TIMER_BASE 0x08

    /****** STATUS *****/
    #define SEESAW_TIMER_STATUS 0x00

    //this is asserted when this encorunters an error
    #define SEESAW_TIMER_STATUS_ERROR_BITS 0x01

    /****** PWM *****/
    #define SEESAW_TIMER_PWM 0x01

    /****** FREQ ****/
    #define SEESAW_TIMER_FREQ 0x02

Documentation: https://learn.adafruit.com/adafruit-seesaw-atsamd09-breakout/pwm

CircuitPython Learn Guide: https://learn.adafruit.com/circuitpython-essentials/circuitpython-pwm