etho.services.Opt2ZeroService#

class etho.services.Opt2ZeroService.OPT2(*args, serializer: str = 'default', head_ip: str = '192.168.1.1', **kwargs)[source]#

Service for controlling multiple LEDs on raspberry pi. Uses [gpiozero](https://gpiozero.readthedocs.io) to control LEDs via (via GPIO pins). Individual LEDs can be controlled with independent temporal patterns and amplitudes.

[summary]

Parameters
  • serializer (str, optional) – [description]. Defaults to ‘default’.

  • head_ip (str, optional) – [description]. Defaults to ‘192.168.1.1’.

  • logging_port (int, optional) – [description]. Defaults to None.

  • service_port (int, optional) – [description]. Defaults to None.

cleanup(**kwargs)#

free resources

is_busy(**kwargs)#

return state of the instance - IDLE, BUSY, FAILED, etc

test(**kwargs)#

test whether the instance will be functional