bibliopixel.drivers.network module¶
-
class
bibliopixel.drivers.network.CMDTYPE[source]¶ Bases:
object-
BRIGHTNESS= 3¶
-
PIXEL_DATA= 2¶
-
SETUP_DATA= 1¶
-
-
bibliopixel.drivers.network.DriverNetwork¶ alias of
bibliopixel.drivers.network.Network
-
class
bibliopixel.drivers.network.Network(num=0, width=0, height=0, host='localhost', port=3142, **kwds)[source]¶ Bases:
bibliopixel.drivers.driver_base.DriverBaseDriver for communicating with another device on the network.
To be used with either BiblioPixelAnimations.receivers.GenericNetworkReceiver or
network_receiver.NetworkReceiverProvides the same parameters of
driver_base.DriverBaseas well as those below:Parameters: - host (str) – Network hostname or IP address of receiver.
- port (int) – Network port of receiver
-
set_device_brightness(brightness)[source]¶ Hardware specific method to set the global brightness for this driver’s output. This method is required to be implemented, however, users should call
driver_base.DriverBase.set_brightness()instead of calling this method directly.Parameters: brightness (int) – 0-255 value representing the desired brightness level