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

Update device.py #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update device.py #6

wants to merge 1 commit into from

Conversation

Slasktra
Copy link

To turn off the LED completely Bit 4 in register LEDx_OFF_H should be set to 1

To turn off the LED completely Bit 4 in register LEDx_OFF_H should be set to 1
@Slasktra Slasktra closed this Apr 23, 2020
@Slasktra Slasktra reopened this Apr 23, 2020
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 96.032% when pulling 8bc7d8f on Slasktra:patch-1 into 7747900 on voidpp:master.

@Slasktra
Copy link
Author

I have no ideas what coveralls is doing. What is needed is a change in the original device.py

def value_high(val):
return (val >> 8) & 0xFF

needs to be changed to:

def value_high(val):
if val==0:
return 16 #Turn of LED
else:
return (val >> 8) & 0xFF

This will instruct the PCA9685 to turn off the LED completely.

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.

None yet

2 participants