I am using a cincoze cv-p2012 which has 16 GPIO lines defined as DO1-DO8 for output and DI1 - DI8 for input these are controlled by a super i/o chip F81866A I can see there is a driver present
/lib/modules/5.15.0-47-generic/kernel/drivers/gpio/gpio-f7188x.ko
license: GPL
author: Simon Guinot <simon.guinot@sequanux.org>
description: GPIO driver for Super-I/O chips F71869, F71869A, F71882FG, F71889A, F71889F and F81866
srcversion: F68BBD29AF90F994B8314FA
depends:
retpoline: Y
intree: Y
name: gpio_f7188x
vermagic: 5.15.0-47-generic SMP mod_unload modversions
I am trying to toggle the outputs and read the inputs in python I have installed gpiod
how do I access the pins. In C it appears straight forward but I can not work out how to do it using python.
You can try ctypes A foreign function library for Python
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.