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

root@remote-hand pepopiface]# ./pepopiface
** Welcome to pepopiface Version-0.1 Copyright Yamauchi.Isamu compiled:Jul 20 2013 **
usage:pepopiface port:0-8 [0|1] [timer:0-65535ms]
[root@remote-hand pepopiface]# 
Concurrent read operation input port and output port
[root@remote-hand pepopiface]# ./pepopiface 8
0000[root@remote-hand pepopiface]#
The high-order byte is the output port, the lower byte is the input port.

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

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

Enjoy the piface and raspberry pi.
