Skip to content
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

Merged
merged 6 commits into from
Jan 10, 2025
Merged

Conversation

TD-er
Copy link
Member

@TD-er TD-er commented Jan 8, 2025

Fixes: #5216

Command example:

 lu9685,servo,<pin>,<angle>
 lu9685,enable,<pin>
 lu9685,disable,<pin>
 lu9685,setrange,<startpin>,<startVarIndex>,<nrPins>

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.

TD-er added 2 commits January 8, 2025 01:29
Fixes: letscontrolit#5216

Command example:
```
 lu9685servo,<pin>,<angle>
```
To disable pin, set angle to `-1`
src/_P178_LU9685.ino Outdated Show resolved Hide resolved


# define LU9685_ADDRESS 0x00 // I2C address
# define LU9685_MAX_ADDRESS 0x3E
Copy link
Contributor

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.

Copy link
Member Author

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.

@TD-er TD-er merged commit 6c7f805 into letscontrolit:mega Jan 10, 2025
168 checks passed
@TD-er TD-er deleted the feature/P178_LU9685 branch January 10, 2025 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Extra IO - PCA9685 - i2c address range is too limited so I cannot reach my LU9685 board
2 participants