• skip to content



flink-project

Universal Serial Interface to FPGA's

User Tools

  • Admin
  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
You are here: start » flink_python

flink_python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
flink_python [2023/11/02 08:28] – ursgrafflink_python [2023/11/02 09:27] (current) – [How to Use] ursgraf
Line 9: Line 9:
 ===== How to Use ===== ===== How to Use =====
    
 +<code python>
 +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))
 +</code>
flink_python.1698910133.txt.gz · Last modified: 2023/11/02 08:28 by ursgraf

Page Tools

  • Show page
  • Old revisions
  • Back to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki