# @types/raspi-pwm

> TypeScript definitions for raspi-pwm

Latest version **6.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/raspi-pwm
pnpm add @types/raspi-pwm
yarn add @types/raspi-pwm
bun add @types/raspi-pwm
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 6.0.4 |
| Published | 2023-11-07 |
| First published | 2018-01-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/raspi-pwm
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raspi-pwm
- npm.io page: https://npm.io/package/@types/raspi-pwm

## Dependencies (1)

- [@types/raspi-peripheral](https://npm.io/package/@types/raspi-peripheral.md) *

## Recent versions

- 6.0.4 (latest) — 2023-11-07
- 6.0.1 (ts3.6) — 2021-07-08
- 6.0.0 (ts2.1) — 2018-04-24
- 6.0.3 — 2023-10-18
- 6.0.2 — 2023-09-27
- 5.0.0 — 2018-01-17

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raspi-pwm/index.d.ts)
````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](https://npmjs.com/package/@types/raspi-peripheral)

# Credits
These definitions were written by [Bryan Hughes](https://github.com/nebrius).

---
_Source: https://npm.io/package/@types/raspi-pwm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
