DefinitelyTyped/types/raspi-led/index.d.ts
Bryan Hughes 3524ae0be3 Adds type definitions for raspi-gpio, raspi-i2c, raspi-led, raspi-onewire, raspi-pwm, raspi-serial, raspi-soft-pwm (#22898)
* Added peripheral classes from the raspi.js suite.

* Refactored type names to match style guide
2018-01-17 07:40:29 -08:00

16 lines
465 B
TypeScript

// Type definitions for raspi-led 2.0
// Project: https://github.com/nebrius/raspi-led
// Definitions by: Bryan Hughes <https://github.com/nebrius>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
import { Peripheral } from 'raspi-peripheral';
export const OFF = 0;
export const ON = 1;
export class LED extends Peripheral {
constructor();
hasLed(): boolean;
read(): 0 | 1;
write(value: 0 | 1): void;
}