Added exceptions to gpio class

This commit is contained in:
2014-06-12 01:21:08 +02:00
parent 64d338cf90
commit cdb8edd4e0
5 changed files with 26 additions and 4 deletions

View File

@ -23,7 +23,7 @@ $led = $gpio[0]
->setLabel("red led")
->dumpStatus(true);
$btn = $gpio[1]
$btn1 = $gpio[1]
->setDirection("input")
->setValue(0)
->setEdge("rising")
@ -31,7 +31,7 @@ $btn = $gpio[1]
->setLabel("button 1")
->dumpStatus(true);
$gpio[2]
$btn2 = $gpio[2]
->setDirection("input")
->setValue(0)
->setEdge("rising")