self.machine.hardware_platforms['openpixel']¶
-
class
mpf.platforms.openpixel.HardwarePlatform(machine)¶ Bases:
mpf.core.platform.LedPlatformBase class for the open pixel hardware platform.
Parameters: machine -- The main MachineControllerobject.Accessing the openpixel platform via code
Hardware platforms are stored in the
self.machine.hardware_platformsdictionary, so the openpixel platform is available viaself.machine.hardware_platforms['openpixel'].Methods & Attributes
The openpixel platform has the following methods & attributes available. Note that methods & attributes inherited from base classes are not included here.
-
configure_led(config, channels)¶ Configure an LED.
Parameters: - config -- config dict of led
- channels -- number of channels (up to three are supported)
-
initialize()¶ Initialise openpixel platform.
-
stop()¶ Stop platform.
-