gpio: enable very basic gpio control from swig
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
8
examples/python/hello_gpio.py
Normal file
8
examples/python/hello_gpio.py
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import pymaa
|
||||
|
||||
x = pymaa.gpio_t()
|
||||
print(x.pin)
|
||||
gpio_init(x, 20)
|
||||
print(x.pin)
|
||||
Reference in New Issue
Block a user