test on onewire setup

This commit is contained in:
avollkopf 2023-10-19 07:14:22 +02:00
parent 6d8faa7f75
commit 8457e23eab
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,3 @@
__version__ = "4.2.0.a5"
__version__ = "4.2.0.a6"
__codename__ = "Indian Summer"

View file

@ -38,8 +38,11 @@ class CraftBeerPiCli():
def setup_one_wire(self):
print("Setting up 1Wire")
with open('/boot/config.txt', 'w') as f:
f.write("dtoverlay=w1-gpio,gpiopin=4,pullup=on")
with open('/boot/config.txt', 'r') as f:
lines=f.readlines()
#f.write("dtoverlay=w1-gpio,gpiopin=4,pullup=on")
print(lines)
print("/boot/config.txt created")
def list_one_wire(self):