C# 클래스 HexapiBackground.Hardware.Pca9685

파일 보기 프로젝트 열기: Slimordium/Hexapi_Hexapod

공개 메소드들

메소드 설명
SetPin ( int pin, double dutyCycle, bool invertPolarity = true ) : void

toggles the pulse for a given pin; note: to completely shut off an LED, send in a value of 4096

SetPulseParameters ( double value, bool invertPolarity = false ) : void

toggles the pulse for all pins; note: to completely shut off an LED, send in a value of 4096

비공개 메소드들

메소드 설명
Pca9685 ( ) : System

Adafruit 12bit, 16 channel, I2C PWM controller. Adapted from the Adafruit library for the Arduino

Reset ( ) : void
SetAllPwm ( ushort on, ushort off ) : void
SetDesiredFrequency ( double frequency ) : double
SetPwm ( byte channel, ushort on, ushort off ) : void
Start ( ) : Task

메소드 상세

SetPin() 공개 메소드

toggles the pulse for a given pin; note: to completely shut off an LED, send in a value of 4096
public SetPin ( int pin, double dutyCycle, bool invertPolarity = true ) : void
pin int the pin between 0 and 15
dutyCycle double value between 0-4095; if maximum value exceeded, 4095 will be used
invertPolarity bool
리턴 void

SetPulseParameters() 공개 메소드

toggles the pulse for all pins; note: to completely shut off an LED, send in a value of 4096
public SetPulseParameters ( double value, bool invertPolarity = false ) : void
value double value between 0-4095; if maximum value exceeded, 4095 will be used
invertPolarity bool
리턴 void