Torc  0.1
Classes | Macros | Variables
torci2cpca9685.cpp File Reference
#include "torclogging.h"
#include "torci2cpca9685.h"
#include <wiringPiI2C.h>
#include <stdint.h>
#include <unistd.h>
#include <math.h>
Include dependency graph for torci2cpca9685.cpp:

Go to the source code of this file.

Classes

class  TorcI2CPCA9685Factory
 

Macros

#define MODE1   0x00
 
#define MODE2   0x01
 
#define LED0_ON_LOW   0x06
 
#define LED0_ON_HIGH   0x07
 
#define LED0_OFF_LOW   0x08
 
#define LED0_OFF_HIGH   0x09
 
#define PRESCALE   0xFE
 
#define CLOCKFREQ   25000000.0
 
#define PCA9685_RESOLUTION   4095
 
#define PCA9685_RANGE   4096
 

Variables

TorcI2CPCA9685Factory TorcI2CPCA9685Factory
 

Macro Definition Documentation

#define CLOCKFREQ   25000000.0

Definition at line 39 of file torci2cpca9685.cpp.

#define LED0_OFF_HIGH   0x09

Definition at line 37 of file torci2cpca9685.cpp.

#define LED0_OFF_LOW   0x08

Definition at line 36 of file torci2cpca9685.cpp.

#define LED0_ON_HIGH   0x07

Definition at line 35 of file torci2cpca9685.cpp.

#define LED0_ON_LOW   0x06

Definition at line 34 of file torci2cpca9685.cpp.

#define MODE1   0x00

Definition at line 32 of file torci2cpca9685.cpp.

#define MODE2   0x01

Definition at line 33 of file torci2cpca9685.cpp.

#define PCA9685_RANGE   4096

Definition at line 41 of file torci2cpca9685.cpp.

#define PCA9685_RESOLUTION   4095

Definition at line 40 of file torci2cpca9685.cpp.

#define PRESCALE   0xFE

Definition at line 38 of file torci2cpca9685.cpp.

Variable Documentation