PinService facade anywhere in your Laravel code to get a reference to a pin using the pin() method.
Pass the pin number as the argument.
From there, you can use the turnOn() and turnOff() methods to manage the power state of output pins.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
PinService facade anywhere in your Laravel code to get a reference to a pin using the pin() method.
Pass the pin number as the argument.
From there, you can use the turnOn() and turnOff() methods to manage the power state of output pins.
use DanJohnson95\Pinout\Facades\PinService;
$pin = PinService::pin(13);
$pin->turnOn();
$pin->turnOff();