17 from libpruio
import *
49 io =
pruio_new(PRUIO_DEF_ACTIVE, 4, 0x98, 0)
53 if IO.Errr:
raise AssertionError(
"pruio_new failed (%s)" % IO.Errr)
55 pinmode = IO.BallConf[PIN]
57 raise AssertionError(
"config failed (%s)" % IO.Errr)
58 print(
"watch SOS code on user LED 3 (near ethernet connector)")
59 print(
"execute the following command to get rid of mmc1 triggers")
60 print(
" sudo su && echo none > /sys/class/leds/beaglebone:green:usr3/trigger && echo 0 > /sys/class/leds/beaglebone:green:usr3/brightness && exit")
61 print(
"press <Ctrl>-C to quit")
68 except KeyboardInterrupt:
char * pruio_config(pruIo *Io, uint32 Samp, uint32 Mask, uint32 Tmr, uint16 Mds)
Wrapper function for PruIo::config().
pruIo * pruio_new(uint16 Act, uint8 Av, uint32 OpD, uint8 SaD)
Wrapper function for the constructor PruIo::PruIo().
void pruio_destroy(pruIo *Io)
Wrapper function for the destructor PruIo::~PruIo().
char * pruio_gpio_setValue(pruIo *Io, uint8 Ball, uint8 Modus)
Wrapper function for GpioUdt::setValue().