UNPKG

opengpio

Version:

A performant c++ based general purpose GPIO controller for linux devices. OpenGPIO is written using libgpiod, line & chip based abstractions.

17 lines (16 loc) 372 B
import { Gpio } from '../types'; export declare enum Direction { Input = 0, Output = 1 } export declare class Pin { private readonly gpio; private readonly direction; private getter; private setter; private cleanup; constructor(gpio: Gpio, direction: Direction); stop(): void; get value(): boolean; set value(value: boolean); }