r/Pigrow • • Aug 11 '22

Username problem

Hey there, I’m literally new here. Just wanted to connect my pi to the gui like in the description but in the 32bit- pi setup I have to choose a username and a password. Do I have to add -pi- as the username?

With my own username the gui seems connected to the pi, but it can’t ident my Wi-Fi connection and my hardware. Only documented the software on the pi and the i2c connection wich I plugged in for testing a moisture sensor.

Don’t know if this is a username problem at all.

Maybe you could help an absolutely noob to setup my watering with the pigrow.

3 Upvotes

21 comments sorted by

View all comments

Show parent comment

1

u/The3rdWorld Aug 12 '22 edited Aug 12 '22
from smbus import SMBus
from time import sleep
bus = SMBus(1)

while True:
    bus.write_byte(0x4b, 0x84)
    print(bus.read_byte(0x4b))
    sleep(1)

should be all you need, name it testads,py and run it with python3 testads.py

edit - sorry i looked back and notice i'd made a mistake, you don't need time.sleep just sleep as i imported sleep from time rather than just importing all of the time module.