semvec/pypi-packages huggingface dataset:
gpioc 1.5
A module to control GPIO
License: MIT


## support chips
- Allwinner H616

## example-gpio
```
from gpioc.chips.H616 import *
import time
key = PC12
led = PC13
key.init(key.IN,key.PULL_UP)
led.init(led.OUT)

PC12.init(PC12.IN,PC12.PULL_UP)
PC13.init(PC13.OUT)

while True:
    time.sleep(0.1)
    if key.value() == 0:
        led.value(1)
    else:
        led.value(0)
```

## example-softpwm
```
from gpioc.pwm import Pwm
from gpioc.chips.H616 import *
import time

led = Pwm(PC13)
led.frequency = 1000
while 1:
    for i in range(1,100,5):
        led.duty_cycle = i
        time.sleep(0.1)
```