Hello iv been messing with the sample code for
https://github.com/Seeed-Studio/grove.py/blob/master/grove/grove_light_sensor_v1_2.py
And it is working well but was curious if there’s a way to print just an integer? Currently it returns
“Hat Name = ‘Grove Bade Hat RPi’
As a header to every sensor iv worked with. How do I remove that? Thanks
Sent from my iPhone
Hell,
pls check
this file and change the line of code:
print
(
“Hat Name = ‘
{}
’”
.format(
self
.name))
Thanks I tried that but it’s still giving me the same issue, is there anything else I need to remove?
Sent from my iPhone
Yes I updated the file to pi but it still gives “Hat Name = ‘Grove Base Hat RPi’
Thankyou
Sent from my iPhone
Do I need to install helper.py from terminal?
When I tried I got:
“Could not find a version that satisfies the requirement helper.py…”
I replaced the original on the pi with the edited one with ssh
Thankyou for the help
It seems to have worked when I retired to install it, thankyou. Do you know if the cheaper basehat for rpi works with node red? Tried using that but it won’t output the sensor data
Sent from my iPhone
Hi there,
Sorry, it does not support the node-red. Thanks.
best rgds
Bill