An open API service indexing awesome lists of open source software.

https://github.com/yoshoku/node-red-dashboard-2-ui-seven-segment-display

A seven-segment display widget for the Node-RED Dashboard 2.0
https://github.com/yoshoku/node-red-dashboard-2-ui-seven-segment-display

Last synced: 2 months ago
JSON representation

A seven-segment display widget for the Node-RED Dashboard 2.0

Awesome Lists containing this project

README

          

# node-red-dashboard-2-ui-seven-segment-display

A seven-segment display widget for the Node-RED Dashboard 2.0.

![Example](https://github.com/user-attachments/assets/485c30d2-e594-4bbb-b3fe-84b8331cf8b4)

## Installation

You can install this node from the "Manage Palette" menu in the Node-RED interface.
Alternatively, run the following command in your Node-RED user directory:

```
npm install @yoshoku/node-red-dashboard-2-ui-seven-segment-display
```

## Segment pattern

Each segment is assigned a letter from a to g, and the dot in the bottom right corner is assigned dp.

```
--a--
| |
f b
| |
--g--
| |
e c
| |
--d-- (dp)
```

The segment pattern is represented by an 8-bit string.

```
dp g f e d c b a
0 0 0 0 0 1 1 1
```

This bit string is converted to a decimal number from 0 to 255 or a headecimal number
according to the type of the value property.

## Value property

- **str**: Expects hexadecimal strings (e.g. '6F') to be passed.
- **num**: Expects integers from 0 to 255 to be passed.
- **msg**: When a `number` type value is passed, it is processed the same as `num`. For other types, it is processed the same as `str`.

## License

node-red-dashboard-2-ui-seven-segment-display is available as open source under
the terms of the [Apache-2.0 License](https://github.com/yoshoku/node-red-dashboard-2-ui-seven-segment-display/blob/main/LICENSE).