Node-red-node-pi-sense-hat - DOCUP

#1

Node-RED version: v0.18.7
Node.js version: v8.11.2
node-red-node-pi-sense-hat@0.0.15

I spent a lot of time trying to get the flip to work. The help says:

Flip the screen

Format: F

axis must be either H or V to flip on the horizontal or vertical axis respectively.

So I tried F<V> and it didn’t work. I tried F<v>, f<v>, f<V> - I tried F(V) andF[V]. I even tried digging thru the code but nothing worked till I finally tried FV.

My suggestion is to change the ‘Node Help’ for ‘Rotate the screen’ and ‘Flip the screen’
from:

Rotate the screen

Format: R

angle must be 0, 90, 180 or 270.

Flip the screen

Format: F

axis must be either H or V to flip on the horizontal or vertical axis respectively.

to

Rotate the screen

Format: R

angle must be 0, 90, 180 or 270.
Example: R270

Flip the screen

Format: F

axis must be either H or V to flip on the horizontal or vertical axis respectively.
Example: FH

and for ‘Set the screen brightness’ from:

Set the screen brightness

Format: D

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

to:

Set the screen brightness

Format: D

level must be 0 (low) or 1 (high).
Example: D1

0 Likes

#2

Looks like a good Pull Request ?

0 Likes

#3

Ok, I’ll do one after the \n issue is taken care of incase some doc needs to be changed with it.

0 Likes

#4

The Pull Request has been done

0 Likes

#5

Great, will have a look

0 Likes