Added exceptions to gpio class
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user