Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 863 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 863 Bytes

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');

// 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