6.0.4 • Published 6 months ago

@types/raspi-pwm v6.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for raspi-pwm 6.0
// Project: https://github.com/nebrius/raspi-pwm
// Definitions by: Bryan Hughes <https://github.com/nebrius>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1

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.

6.0.3

7 months ago

6.0.2

8 months ago

6.0.4

6 months ago

6.0.1

3 years ago

6.0.0

6 years ago

5.0.0

6 years ago