-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[LU9685] Add P178_LU9685 (#5216) #5218
Conversation
Fixes: letscontrolit#5216 Command example: ``` lu9685servo,<pin>,<angle> ``` To disable pin, set angle to `-1`
d251ab7
to
572140a
Compare
|
||
|
||
# define LU9685_ADDRESS 0x00 // I2C address | ||
# define LU9685_MAX_ADDRESS 0x3E |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICS, only 31 (2^5 = 32, minus 0x00) addresses can be configured on the board, the 0x3F notation is the left-shifted address for 0x1F Wire address.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was what the user reported to have found with the I2C scan.
So just for now, I have doubled the range.
Fixes: #5216
Command example:
To disable pin, set angle to
-1
When
<pin>
is set to"all"
, the command applies to all pins.lu9685,setrange
can set a range of pins using a range of system variables.If a variable in a range has not been set, that pin will be disabled.