Private
Public Access
2
0
Files
mraa/examples/python/hello_gpio.py
Brendan Le Foll e59b8b2038 gpio: enable very basic gpio control from swig
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-04-10 18:00:57 +01:00

9 lines
100 B
Python

#!/usr/bin/env python3
import pymaa
x = pymaa.gpio_t()
print(x.pin)
gpio_init(x, 20)
print(x.pin)