Groups
Groups
Sign in
Groups
Groups
HiPi Perl
Conversations
About
Send feedback
Help
PiFace HiPi::Wiring::digitalRead allways returns 0
103 views
Skip to first unread message
Tim Walter
unread,
Oct 17, 2013, 11:33:06 AM
10/17/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to hipi...@googlegroups.com
Hi
i use my raspberry with a PiFace.
&HiPi::Wiring::digitalWrite($PIN,$VAL)
does work fine
but reading does allways returns "0".
use HiPi::Wiring qw( :wiring );
if (&HiPi::Wiring::wiringPiSetupPiFace() == -1){ exit(1);}
while(1) {
for my $PIN (0..3) {
print $PIN." ".&HiPi::Wiring::digitalRead($PIN)."\n";
}
sleep(1);
}
i tried WiringPi/examples/piface.c and it works.
Reply all
Reply to author
Forward
0 new messages