@types/raspi-pwm
TypeScript icon, indicating that this package has built-in type declarations

6.0.4 • Public • Published

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.

/@types/raspi-pwm/

    Package Sidebar

    Install

    npm i @types/raspi-pwm

    Weekly Downloads

    1

    Version

    6.0.4

    License

    MIT

    Unpacked Size

    3.57 kB

    Total Files

    5

    Last publish

    Collaborators

    • types