blink_o_meter v1.0.0 BlinkOMeter.Heartbeat

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Gets the current state of the WarningLight. The values are represented as follows

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Gets the current state of the WarningLight. The values are represented as follows:

  • color - the color last sent in by the client, component values can be a integers or floats and will be preserved.
  • former_color - the last color sent to the light. The compoonents of this will be integers between 0 and 255.
  • gpio_pin - the gpio pin on the RPI that the meter is connected to.
  • is_bound - whether or not this blinkometer instance connected to a remote instance at startup.
  • neopixel_channel - the neopixel channel the light has been initialized on.
Link to this function

set_behavior(new_mode)

Link to this function

set_state(state)