Comments (4)
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.
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.
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.
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)
- Does not compile at328p on arduino 1.8.8 HOT 2
- [Improvement] Continuous servo support. HOT 2
- [Improvement] PIO library support. HOT 2
- [Feature Request] Dynamic phase balancer to remove LED flickering/channel update hiccup HOT 6
- [Minor improvement] Adding keywords.txt to library HOT 2
- [Improvement] Add I2C set address method
- Start with predefined servo position - for example stored in eeprom HOT 2
- [Bug] Software I2C example not working HOT 1
- Linear speed servo response
- The readRegister operation obscures next write with SoftwareI2C HOT 1
- Mistyped variable name HOT 2
- unterminated #ifndef - PCA9685.cpp HOT 4
- confirmed for teensy 3.x HOT 1
- [Improvement] Make setChannelsPWM work inside Timer0 CMP interrupt. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pca9685-arduino.