Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
var chardisplayClass = require("@brightsign/chardisplay");
var chardisplay = new chardisplayClass();

CharDisplay

...

show()
Code Block
languagejs
Promise<void> Showshow(in unsigned long row, in unsigned long col, in DOMString text)

Displays text at prescribed position.

...

clear()
Code Block
languagejs
Promise<void> Clearclear()

Clears the display.

...

setPos()
Code Block
Promise<void> SetPossetPos(in unsigned long row, in unsigned long col)

Positions the cursor

...

setCursor()
Code Block
languagejs
Promise<void> SetCursorsetCursor(in unsigned long cursor)

Sets the cursor style: 0 is off; 1 is blink; 2 is underline; 3 is both

...

setContrast()
Code Block
languagejson
Promise<void> SetContrastsetContrast(in unsigned long contrast)

Set the display contrast in values from 0 to 100

...

getContrast()
Code Block
languagejson
Promise<void> GetContrastgetContrast()

Gets the display contrast

...

setBrightness()
Code Block
languagejson
Promise<void> SetBrightnesssetBrightness(in unsigned long brightness)

Set the display brightness in values from 0 to 100

...

getBrightness()
Code Block
languagejson
Promise<int> GetBrightnessgetBrightness()

Gets the display brightness