gonzopi

git clone https://git.tarina.org/gonzopi
Log | Files | Refs | README | LICENSE

commit 9f2332c31f17ab45fe73927acf9b5cef8de1ce23
parent 30cbdf7e396e6d5bf0502f3c52de8cac5433914b
Author: rob <rob@tarina.org>
Date:   Sat, 23 Mar 2024 14:21:35 +0000

gpio rights to pi

Diffstat:
Mgonzopi.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/gonzopi.py b/gonzopi.py @@ -45,6 +45,11 @@ pipe = subprocess.check_output('lsb_release -c -s', shell=True) debianversion = pipe.decode().strip() print('running debian ' + debianversion) +#give permissions to GPIO +os.system('sudo chown root.gpio /dev/gpiomem') +os.system('sudo chmod g+rw /dev/gpiomem') + + #I2CBUTTONS probei2c = 0 while probei2c < 3: