UNPKG

opengpio

Version:

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

13 lines (12 loc) 431 B
import { Edge, Gpio } from '../types'; import { Pwm } from './Pwm'; import { Pin } from './Pin'; import { Watch } from './Watch'; export declare class Device { static board: Record<number, Gpio>; static bcm: Record<string, Gpio>; static input(gpio: Gpio): Pin; static output(gpio: Gpio): Pin; static watch(gpio: Gpio, edge: Edge): Watch; static pwm(gpio: Gpio, dutyCycle: number, frequency: number): Pwm; }