mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-21 14:38:15 +01:00
test on onewire setup
This commit is contained in:
parent
6d8faa7f75
commit
8457e23eab
2 changed files with 6 additions and 3 deletions
|
@ -1,3 +1,3 @@
|
|||
__version__ = "4.2.0.a5"
|
||||
__version__ = "4.2.0.a6"
|
||||
__codename__ = "Indian Summer"
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue