GithubHelp home page GithubHelp logo

Comments (4)

NachtRaveVL avatar NachtRaveVL commented on August 31, 2024

I left this as a comment around its usage:

// In avr/libraries/Wire.h and avr/libraries/utility/twi.h, BUFFER_LENGTH controls
// how many channels can be written at once.

Since you're not using the AVR libraries (you're using ESP32) you'll probably have to self-define this.

Still may be worth coding in a default to use in any case.

from pca9685-arduino.

CRprog avatar CRprog commented on August 31, 2024

Thank you for the hint, For me, I've added the marked (#) lines here in PCA9685.h
.....
#define PCA9685_MIN_CHANNEL 0
#define PCA9685_MAX_CHANNEL 15
#define PCA9685_CHANNEL_COUNT 16
#ifndef BUFFER_LENGTH (#)
#define BUFFER_LENGTH 32 (#)
#endif (#)
.....
Now it compiles. But maybe there's a better solution at another place ....
Btw.: If you maybe update sometime, think about adding a keywords.txt (?)

from pca9685-arduino.

NachtRaveVL avatar NachtRaveVL commented on August 31, 2024

Fixed on version 1.2.11. Pushed to master. No worries =). It was a good catch for an odd side case. Let me know if the new version helps or not. =)

from pca9685-arduino.

CRprog avatar CRprog commented on August 31, 2024

Runs fine now 'out of the box' also in the ESP32 environment. Good job and have a nice day.

from pca9685-arduino.

Related Issues (15)

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.