npm.io
6.0.4 • Published 2 years ago

@types/raspi-pwm

Licence
MIT
Version
6.0.4
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/raspi-pwm

Summary

This package contains type definitions for raspi-pwm (https://github.com/nebrius/raspi-pwm).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raspi-pwm.

index.d.ts

import { Peripheral } from "raspi-peripheral";
export interface Config {
    pin?: number | string | undefined;
    frequency?: number | undefined;
}
export class PWM extends Peripheral {
    private _frequencyValue;
    private _dutyCycleValue;
    private _pwmPort;
    private _pwm;
    readonly frequency: number;
    readonly dutyCycle: number;
    constructor(config?: number | string | Config);
    destroy(): void;
    write(dutyCycle: number): void;
}

Additional Details

Credits

These definitions were written by Bryan Hughes.