Skip to main content

Documentation Index

Fetch the complete documentation index at: https://pinout.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

You can use the 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();