Coder Social home page Coder Social logo

pca9685's People

Contributors

terahz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pca9685's Issues

bug in register addresses for write

file PCA9685: func: void PCA9685::setPWM(uint8_t led, int on_value, int off_value) {
i2c->write_byte(LED0_ON_L + LED_MULTIPLYER * (led - 1), on_value & 0xFF);
i2c->write_byte(LED0_ON_H + LED_MULTIPLYER * (led - 1), on_value >> 8);
i2c->write_byte(LED0_OFF_L + LED_MULTIPLYER * (led - 1), off_value & 0xFF);
i2c->write_byte(LED0_OFF_H + LED_MULTIPLYER * (led - 1), off_value >> 8);
}
if (led==0) address = LED0_ON_L - LED_MULTIPLYER
its not led0 address

A-PINS AND OE-PIN

Could you conntect the A-pins straight to GND and the OE-pin straight to 5V(HIGH) if you use the libary and what is the default i2c address, because I haven't find the default address in the documentation.

Doesn't build (Raspberry Pi 2)

Just cloned this repo and it doesn't build. I noticed that it was trying to include your "I2C.h" file in the PCA9685.h file so I cloned that and tried two things:

  1. Move the I2C source and header to the PCA9685 source folder and attempted to build which didn't work.
  2. Build just the I2C project which gave the error:
pi@raspberrypi2:~/MasterControl/PiLight/I2C/src$ make
g++ -O3 -fPIC -g -Wall -Werror      -c -o I2C.o I2C.cpp
In file included from I2C.cpp:30:0:
/usr/include/linux/i2c-dev.h:37:8: error: redefinition of âstruct i2c_msgâ
In file included from I2C.cpp:29:0:
/usr/include/linux/i2c.h:67:8: error: previous definition of âstruct i2c_msgâ
In file included from I2C.cpp:30:0:
/usr/include/linux/i2c-dev.h:89:7: error: redefinition of âunion i2c_smbus_dataâ
In file included from I2C.cpp:29:0:
/usr/include/linux/i2c.h:125:7: error: previous definition of âunion i2c_smbus_dataâ
<builtin>: recipe for target 'I2C.o' failed
make: *** [I2C.o] Error 1

How was this meant to be used seeing as how nothing compiles?

README

On the datasheet the min and max is 40hz to 1500hz not 40Mhz to 1500Mhz.

dll

friend,
do you have the dll of this code so I can use it in C #? I do not handle anything in C ++.
Thankful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.