This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from pruio import * | |
from time import sleep | |
# Create a ctypes *pointer* to the pruio structure | |
io = pruio_new(PRUIO_DEF_ACTIVE, 0, 0, 0) | |
# Note the *pointer* dereferencing using the contents member | |
if not io.contents.Errr: | |
pruio_config(io, 1, 0, 0, 0) | |
for i in range(4): |