We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24ae254 commit 00f672cCopy full SHA for 00f672c
README.md
@@ -46,13 +46,15 @@ $board = \Calcinai\PHPi\Factory::create();
46
Minimal example of reading and setting a pin
47
48
```php
49
+use Calcinai\PHPi\Pin\PinFunction;
50
+use Calcinai\PHPi\Pin;
51
52
$pin = $board->getPin(17) //BCM pin number
53
->setFunction(PinFunction::INPUT)
54
->setPull(Pin::PULL_UP);
55
56
//Will be === to Pin::LEVEL_HIGH or Pin::LEVEL_LOW
-var_dump($pin->level());
57
+var_dump($pin->getLevel());
58
59
$pin->setFunction(PinFunction::OUTPUT);
60
$pin->high();
0 commit comments