You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
487 B

require_once __DIR__."/../vendor/autoload.php";
use NoccyLabs\Gpio\Gpio;
use NoccyLabs\Gpio\Device\Display\Pcd8544Device;
$gpio = new Gpio(true);
$lcd = new Pcd8544Device;
// we can rename devices as we like, to help in debugging
->setPin("sda", $gpio[0])
->setPin("scl", $gpio[1])
->setPin("res", $gpio[2])
->setPin("sce", $gpio[3])
->setPin("dc", $gpio[4])