From 9301ab6c978059df0ccbdd55d2dbdba308dd4311 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 4 Mar 2016 22:23:43 +0000 Subject: [PATCH] Add dim command --- hardware/sensehat/README.md | 6 ++++++ hardware/sensehat/package.json | 2 +- hardware/sensehat/sensehat.html | 4 ++++ hardware/sensehat/sensehat.js | 7 +++++-- hardware/sensehat/sensehat.py | 6 ++++++ 5 files changed, 22 insertions(+), 3 deletions(-) diff --git a/hardware/sensehat/README.md b/hardware/sensehat/README.md index 32460d83..4df8f549 100644 --- a/hardware/sensehat/README.md +++ b/hardware/sensehat/README.md @@ -118,3 +118,9 @@ The following message properties can be used to customise the appearance: - `msg.color` - the colour of the text, default: `white` - `msg.background` - the colour of the background, default: `off` - `msg.speed` - the scroll speed. A value in the range 1 (slower) to 5 (faster), default: `3` + +#### Set the screen brightness + +Format: `D` + +`level` must be 0 (low) or 1 (high). diff --git a/hardware/sensehat/package.json b/hardware/sensehat/package.json index fa39522f..4f5302b3 100644 --- a/hardware/sensehat/package.json +++ b/hardware/sensehat/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-pi-sense-hat", - "version" : "0.0.5", + "version" : "0.0.6", "description" : "A Node-RED node to interact with a Raspberry Pi Sense HAT", "repository" : { "type":"git", diff --git a/hardware/sensehat/sensehat.html b/hardware/sensehat/sensehat.html index 90bd2b9d..0aa00b04 100644 --- a/hardware/sensehat/sensehat.html +++ b/hardware/sensehat/sensehat.html @@ -130,6 +130,10 @@ To scroll a single character, append a blank space after it - "A ".
  • msg.background - the colour of the background, default: off
  • msg.speed - the scroll speed. A value in the range 1 (slower) to 5 (faster), default: 3
  • + +

    Set the screen brightness

    +

    Format: D<level>

    +

    level must be 0 (low) or 1 (high).