From fdc877845402ba475413f7b31bc4c5679bae9250 Mon Sep 17 00:00:00 2001 From: Gerardo Marx Date: Thu, 6 Mar 2025 13:18:59 -0600 Subject: [PATCH] Gpios lecture example done --- Readme.md | 9 +++++++++ gpio.py | 3 --- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 Readme.md diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..c530883 --- /dev/null +++ b/Readme.md @@ -0,0 +1,9 @@ +# Introduction + +This basic library is used in python as follows: + +```python +import gpio as gpio +gpio.writeVal(gpio.GPIO60,"out", "1") +``` +The main.py script shows the creation of the function and its usage in the python self file. diff --git a/gpio.py b/gpio.py index 9116c2f..9b49f68 100755 --- a/gpio.py +++ b/gpio.py @@ -10,6 +10,3 @@ def writeVal(path, direction, value): fov.write(value) fov.close() return - -writeVal(GPIO60, "out", "1") -