From f668b99179418a9f0180a49478c432502956fc7b Mon Sep 17 00:00:00 2001 From: Gerardo Marx Date: Thu, 27 Feb 2025 10:19:30 -0600 Subject: [PATCH] file name changed --- gpio.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 gpio.py diff --git a/gpio.py b/gpio.py new file mode 100755 index 0000000..9116c2f --- /dev/null +++ b/gpio.py @@ -0,0 +1,15 @@ +#!/usr/bin/python3 + +GPIO60 = "/sys/class/gpio/gpio60/" + +def writeVal(path, direction, value): + fop = open(path + "direction", "w") + fop.write(direction) + fop.close() + fov = open(path + "value", "w") + fov.write(value) + fov.close() + return + +writeVal(GPIO60, "out", "1") +