from gpiozero import Button


def update():
    print("Update")

update_btn = Button(17)
update_btn.hold_time = 7
update_btn.when_held = update

while True:
    pass


# channel_list = [17, 22, 23, 27]

@@ -21,16 +21,28 @@
  Button%0A
+import git%0A%0A
 %0A%0Adef up
@@ -68,16 +68,80 @@
 Update%22)
+%0A    g = git.cmd.Git('/home/pi/projects/labrador/')%0A    g.pull()
 %0A%0Aupdate

update script