-
Notifications
You must be signed in to change notification settings - Fork 1
infoLED module
doomke edited this page Aug 1, 2023
·
10 revisions
Based on a Neopixel LED or LED chain a basic feedback element is created, making simple information like connection status or motor states accessible to users by color and sequence of the LEDs. Note that all timed patterns return to an off state by default in order to minimize disruption of optical experiments
| setting | type | range | description |
|---|---|---|---|
| pin | integer | > 0 | number of the pin the LED is connected to |
| pixel | integer | > 0 | number of pixels the LED chain holds |
| key | type | range | description |
|---|---|---|---|
| hold | boolean | – | keep the LEDs on after a timed pattern has expired if set to true; false will instantly turn off all LEDs |
| color | String | – | specify the color to be displayed[1] |
| const | integer | ≥ 0 | turn on all LEDs for the specified time (in ms) |
| pulse | integer | ≥ 0 | all LEDs pulse in intensity for the specified time (in ms) |
| cycle | integer | – | successively turn on all LEDs; all LEDs are on after the specified time (in ms)[2] |
-
↑formated as HTML color string (e.g.
#FF00FFrepresents magenta). Colors are converted to HSV color space. Note that the value (brightness) is discarded and replaced with a default to obtain a uniform look and avoid overly bright LEDs - ↑ LED will cycle in positive direction (clockwise) if the duration is positive and in negative direction (counterclockwise) if negative
This module does not provide a status.
This module is passive and does not emit events.
While the ESP32 is still establishing the connection to the server, all infoLED modules automatically display the current connection status:
| color pattern | meaning |
|---|---|
| constant red |
WiFi disconnected |
| constant yellow |
WiFi connected, socket.io disconnected |
| flashing yellow |
socket.io connected, waiting for authentication |
| constant green |
socket.io authenticated |