Metadata-Version: 2.1
Name: gpioc
Version: 1.3
Summary: A module to control GPIO
Home-page: https://github.com/sc-bin/gpioc
Author: sc-bin
Author-email: 3335447573@qq.com
License: MIT
Platform: manylinux
Description-Content-Type: text/markdown
License-File: LICENSE


## 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)
```
