Source code for bibliopixel.control.receiver

import abc


[docs]class Receiver(abc.ABC): """ Several classes receive data and route it to a target, and this is their base class, mainly for documentation. Receivers must have two methods, `set_project` and `receive`. `set_project` must be called exactly once for each Receiver, and this must be before `receive` is ever. """
[docs] @abc.abstractmethod def set_project(self, project): pass
[docs] @abc.abstractmethod def receive(self, values): pass