Example: print digital and analog inputs. More...
#include "../pruio/pruio.bi"
Go to the source code of this file.
Variables | |
VAR | io = NEW PruIo |
include libpruio More... | |
VAR | x = POS() |
VAR | y = CSRLIN() - 5 |
Example: print digital and analog inputs.
This file contains an example on how to use libpruio to print out the state of the digital GPIOs and the analog input lines.
Licence: GPLv3
Copyright 2014 by Thomas{ dOt ]Freiherr[ At ]gmx[ DoT }net
Compile by:
fbc -w all io_input.bas
Definition in file io_input.bas.
VAR io = NEW PruIo |
include libpruio
create a PruIo structure, wakeup devices
Definition at line 24 of file io_input.bas.
VAR x = POS() |
Definition at line 35 of file io_input.bas.
VAR y = CSRLIN() - 5 |
Definition at line 36 of file io_input.bas.