Pico-Arduino
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PicoPWM Class Reference

This is an even more powerfull PWM API where we can specify a user defined input range and the cycle frequency in hz. More...

#include <PicoPWM.h>

Public Member Functions

 PicoPWM (uint64_t frequency, uint64_t maxValue)
 
void begin (pin_size_t pin, uint64_t initalValue=0)
 
void end (pin_size_t pin)
 
void write (pin_size_t pin, uint64_t value)
 
uint64_t period ()
 
uint64_t frequency ()
 

Protected Member Functions

uint64_t valueToDutyCycle (uint64_t value)
 

Protected Attributes

PicoPWMNanonano
 
int64_t max_value
 
uint64_t period_nano_sec
 

Detailed Description

This is an even more powerfull PWM API where we can specify a user defined input range and the cycle frequency in hz.

Author
Phil Schatzmann

The documentation for this class was generated from the following file: