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
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/raspi-peripheral
Credits
These definitions were written by Bryan Hughes.