This documentation is for an unreleased version of MPF!
This is the developer documentation for MPF 0.51, which is the “dev” (next) release of MPF that is a work-in-progress. Use the “Read the Docs” link in the lower left corner to view the developer docs for the version of MPF you’re using.
Platform class for the P-ROC hardware controller.
Parameters: machine – The MachineController instance.
The MachineController instance.
Accessing the p_roc platform via code
Hardware platforms are stored in the
self.machine.hardware_platformsdictionary, so the p_roc platform is available via
Methods & Attributes
The p_roc platform has the following methods & attributes available. Note that methods & attributes inherited from base classes are not included here.
Configure a hardware DMD connected to a classic P-ROC.
configure_driver(config: mpf.core.platform.DriverConfig, number: str, platform_settings: dict)¶
Create a P-ROC driver.
Typically drivers are coils or flashers, but for the P-ROC this is also used for matrix-based lights.
Parameters: config – Dictionary of settings for the driver. Returns: A reference to the PROCDriver object which is the actual object you can use to pulse(), patter(), enable(), etc.
configure_segment_display(number: str) → mpf.platforms.interfaces.segment_display_platform_interface.SegmentDisplayPlatformInterface¶
configure_switch(number: str, config: mpf.core.platform.SwitchConfig, platform_config: dict)¶
Configure a P-ROC switch.
- number – String number of the switch to configure.
- config – SwitchConfig settings.
Returns: A configured switch object.
Read in and set the initial switch state.
The P-ROC uses the following values for hw switch states: 1 - closed (debounced) 2 - open (debounced) 3 - closed (not debounced) 4 - open (not debounced)
Dump infos about boards.
Check the P-ROC for any events (switch state changes or notification that a DMD frame was updated).
Also tickles the watchdog and flushes any queued commands to the P-ROC.