material-maker icon indicating copy to clipboard operation
material-maker copied to clipboard

Add sixteen segment display node

Open williamchange opened this issue 2 years ago • 1 comments

This adds a sixteen segment display node, which supports displaying characters from ASCII (32-125, 31 reserved to display all segments), with variable weight and rotatable diagonals.

xvisd_demo

The following characters are currently supported:

characters

williamchange avatar Aug 10 '22 14:08 williamchange

The node now includes a Custom display mode(switchable between Custom and ASCII) which takes in an unsigned 16-bit float (0-65535) to determine which segments to be turned on based on bit positions:

node_preview

custom_mode_example

For example, to display M: Binary: 0001 0010 0001 1011 Decimal: 4635 I have also written a simple web app as a reference point for the segment mapping/corresponding hex/dec/bin configurations:

M_example

Alternatively, here's how the bit positions are mapped to the segments:

  _10__ __14__
 | \   |   /  |
 12 13 11 16  15
 |    \|/     |
  __1__ __6___
 |    /|\     |
 4  5  2  9   7
 | /   |   \  |
  __3__|__8___

 1  4    8   12    16
 |  |    |    |    |        
 0000 0000 0000 0000

williamchange avatar Aug 12 '22 15:08 williamchange