rpi-backlight

0.4.0 • Public • Published

rpi-backlight

A node library to control the backlight of the official Raspberry Pi 7" touch display

Installation

npm install --save rpi-backlight

Usage

var backlight = require('rpi-backlight');

// Check if the device supports backlight
var isSupported = backlight.isSupported();

// All methods return promises.
backlight.powerOn();
backlight.powerOff();
backlight.isPoweredOn();
backlight.getBrightness();
backlight.setBrightness(value); // The screen goes Off at <= 9 brightness value
backlight.getMaxBrightness();

Coming soon

Package Sidebar

Install

npm i rpi-backlight

Weekly Downloads

3

Version

0.4.0

License

MIT

Unpacked Size

7.31 kB

Total Files

6

Last publish

Collaborators

  • pimterry