// prints the input pins value (0 to 15) in a loop #include #include #include #include "phlib.h" #define NP 100 int main(int argc, char* argv[]) { int k; if(!open_phoenix()) { fprintf(stderr, "Phoenix driver open failed.\n"); exit(1); } for(k=0; k < 10; ++k) printf("%d\n", read_inputs()); return 0; }