====== Python Wrapper for flink ======
* [[https://github.com/flink-project/flinkpython | flink Python Wrapper on Github]]
This is a Python wrapper for the [[flink_lib|flink Userspace Library]]. flink devices as well as all their integrated subdevices can be easily accessed. The wrapper allows control of the high-level API as well as the low-level API.
===== How to Use =====
import flink
import time
dev = flink.FlinkDevice()
dev.lsflink()
gpio = flink.FlinkGPIO()
gpio.setDir(pin, True)
gpio.setValue(pin, not gpio.getValue(pin))
time.sleep(1)
gpio.setValue(pin, not gpio.getValue(pin))