Пример #1
0
    def __init__(self, machine):
        self.machine = machine
        self.HZ = None
        self.secs_per_tick = None
        self.next_tick_time = None
        self.features = {}
        self.hw_switch_rules = {}
        self.driver_overlay = None

        # Set default platform features. Each platform interface can change
        # these to notify the framework of the specific features it supports.
        self.features['max_pulse'] = 255
        self.features['hw_timer'] = False
        self.features['hw_rule_coil_delay'] = False
        self.features['variable_recycle_time'] = False

        # todo change this to be dynamic for any overlay
        if self.machine.config['hardware']['driverboards'] == 'snux':
            from mpf.platform.snux import Snux
            self.driver_overlay = Snux(self.machine, self)
            self.machine.config['hardware']['driverboards'] = 'wpc'