/*
Copyright Isamu.Yamauchi 2013-2015. update 2013.9.5
This program uses the libpiface. thanks.
pepopiface.c is controls for Raspberry pi PiFace Digital I/O Expansion Board
*/

usage:
[root@remote-hand ~]# pepopiface

** Welcome to pepopiface Version-0.1 Copyright Yamauchi.Isamu compiled:Sep  5 2013 **
usage:pepopiface port:0-8 [0|1] [timer:0-65535ms]

Concurrent read operation input port and output port
[root@remote-hand ~]# pepopiface 8
00ff[root@remote-hand ~]#
The high-order byte is the output port, the lower byte is the input port.

port0 write 1
[root@remote-hand ~]# pepopiface 0 1
1[root@remote-hand pepopiface]#

port0 write 0
[root@remote-hand ~]# pepopiface 0 0
0[root@remote-hand ~]#

port0 write 1 with timer
This operation is to "1" port of 0th 2 seconds.
[root@remote-hand ~]# pepopiface 0 1 2000
0[root@remote-hand ~]#

port0 read
[root@remote-hand ~]# pepopiface 0
1[root@remote-hand ~]#

Enjoy the piface and raspberry pi.
