6.0.4 • Published 2 years ago
@types/raspi-pwm v6.0.4
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
- Last updated: Thu, 08 Jul 2021 20:20:16 GMT
- Dependencies: @types/raspi-peripheral
- Global values: none
Credits
These definitions were written by Bryan Hughes.