self.machine.hardware_platforms[‘lisy’]¶
-
class
mpf.platforms.lisy.lisy.
LisyHardwarePlatform
(machine)¶ Bases:
mpf.core.platform.SwitchPlatform
,mpf.core.platform.LightsPlatform
,mpf.core.platform.DriverPlatform
,mpf.core.platform.SegmentDisplaySoftwareFlashPlatform
,mpf.core.platform.HardwareSoundPlatform
,mpf.core.logging.LogMixin
LISY platform.
Accessing the lisy platform via code
Hardware platforms are stored in the
self.machine.hardware_platforms
dictionary, so the lisy platform is available viaself.machine.hardware_platforms['lisy']
.Methods & Attributes
The lisy platform has the following methods & attributes available. Note that methods & attributes inherited from base classes are not included here.
-
clear_hw_rule
(switch: mpf.core.platform.SwitchSettings, coil: mpf.core.platform.DriverSettings)¶ No rules on LISY.
-
configure_driver
(config: mpf.core.platform.DriverConfig, number: str, platform_settings: dict) → mpf.platforms.interfaces.driver_platform_interface.DriverPlatformInterface¶ Configure a driver.
-
configure_hardware_sound_system
() → mpf.platforms.interfaces.hardware_sound_platform_interface.HardwareSoundPlatformInterface¶ Configure hardware sound.
-
configure_light
(number: str, subtype: str, platform_settings: dict) → mpf.platforms.interfaces.light_platform_interface.LightPlatformSoftwareFade¶ Configure light on LISY.
-
configure_segment_display
(number: str) → mpf.platforms.interfaces.segment_display_platform_interface.SegmentDisplaySoftwareFlashPlatformInterface¶ Configure a segment display.
-
configure_switch
(number: str, config: mpf.core.platform.SwitchConfig, platform_config: dict) → mpf.platforms.interfaces.switch_platform_interface.SwitchPlatformInterface¶ Configure a switch.
-
get_hw_switch_states
()¶ Return current switch states.
-
initialize
()¶ Initialise platform.
-
parse_light_number_to_channels
(number: str, subtype: str)¶ Return a single light.
-
read_byte
() → Generator[[int, None], int]¶ Read one byte.
-
read_string
() → Generator[[int, None], bytes]¶ Read zero terminated string.
-
readuntil
(separator, min_chars: int = 0)¶ Read until separator.
Parameters: - separator – Read until this separator byte.
- min_chars – Minimum message length before separator
-
send_byte
(cmd: int, byte: bytes = None)¶ Send a command with optional payload.
-
send_string
(cmd: int, string: str)¶ Send a command with null terminated string.
-
set_pulse_on_hit_and_enable_and_release_and_disable_rule
(enable_switch: mpf.core.platform.SwitchSettings, disable_switch: mpf.core.platform.SwitchSettings, coil: mpf.core.platform.DriverSettings)¶ No rules on LISY.
-
set_pulse_on_hit_and_enable_and_release_rule
(enable_switch: mpf.core.platform.SwitchSettings, coil: mpf.core.platform.DriverSettings)¶ No rules on LISY.
-
set_pulse_on_hit_and_release_rule
(enable_switch: mpf.core.platform.SwitchSettings, coil: mpf.core.platform.DriverSettings)¶ No rules on LISY.
-
set_pulse_on_hit_rule
(enable_switch: mpf.core.platform.SwitchSettings, coil: mpf.core.platform.DriverSettings)¶ No rules on LISY.
-
start
()¶ Start reading switch changes.
-
stop
()¶ Stop platform.
-