RBControl
Library for the RB3201-RBControl board with the ESP32 by RoboticsBrno.
Public Types | Public Member Functions | Static Public Member Functions | List of all members
rb::SerialPWM Class Reference

#include <RBControl_serialPWM.hpp>

Public Types

typedef int value_type
 

Public Member Functions

 SerialPWM (const int channels, const std::initializer_list< int > data_pins, const int latch_pin, const int clock_pin, const int test_pin=-1, const int frequency=20000, const int i2s=1)
 
 ~SerialPWM ()
 
value_typeoperator[] (size_t index)
 
void update ()
 

Static Public Member Functions

static int resolution ()
 

Member Typedef Documentation

◆ value_type

Constructor & Destructor Documentation

◆ SerialPWM()

rb::SerialPWM::SerialPWM ( const int  channels,
const std::initializer_list< int >  data_pins,
const int  latch_pin,
const int  clock_pin,
const int  test_pin = -1,
const int  frequency = 20000,
const int  i2s = 1 
)

◆ ~SerialPWM()

rb::SerialPWM::~SerialPWM ( )

Member Function Documentation

◆ operator[]()

SerialPWM::value_type & rb::SerialPWM::operator[] ( size_t  index)

◆ resolution()

int rb::SerialPWM::resolution ( )
static

◆ update()

void rb::SerialPWM::update ( )

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