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

Communicate over PBHUBUnit to the Watering Unit ? #1

Open
JustOneGuy opened this issue Jul 24, 2024 · 0 comments
Open

Communicate over PBHUBUnit to the Watering Unit ? #1

JustOneGuy opened this issue Jul 24, 2024 · 0 comments

Comments

@JustOneGuy
Copy link

Great Example how to use this product and get the Updates.

I have a Problem in Fetching the Same Data over a PBHUBUnit.
I´m a complete newbie and for now i managed the Communication over 2 PAHUBUnits with i2c Protocol.
But with the GPIO Hub is it much more Difficult to figure out.
Have you maybe any Idea how to create the Correct Code and read the Pin for this Watering Unit ?

i try to use this code on my Core S3 with UIFlow:
from unit import PBHUBUnit
from unit import WateringUnit
global pbhub_0, watering_0 ....

i2c1 = I2C(1, scl=Pin(8), sda=Pin(9), freq=400000)
pbhub_0 = PBHUBUnit(i2c1, 0x61)
watering_0 = WateringUnit(PBHUBUnit(i2c=i2c1, channel=0, address=0x61))

Thanks in advance

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

No branches or pull requests

1 participant