From 56573a8e7d3666e9cda6b448937749e46740a33a Mon Sep 17 00:00:00 2001 From: Brian Madden Date: Tue, 26 Sep 2023 02:03:15 -0700 Subject: [PATCH] added Nano to MPF 0.57 --- mpf/config_spec.yaml | 1 - mpf/platforms/fast/communicators/rgb.py | 2 -- mpf/platforms/fast/fast_led.py | 3 +-- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/mpf/config_spec.yaml b/mpf/config_spec.yaml index 489eb33fc..833963267 100644 --- a/mpf/config_spec.yaml +++ b/mpf/config_spec.yaml @@ -691,7 +691,6 @@ fast_rgb: debug: single|bool|false console_log: single|enum(none,basic,full)|none file_log: single|enum(none,basic,full)|basic - led_fade_time: single|ms|0 led_hz: single|int|30 ignore_reboot: single|bool|true fast_switches: diff --git a/mpf/platforms/fast/communicators/rgb.py b/mpf/platforms/fast/communicators/rgb.py index e4f54ca22..ccc635dbe 100644 --- a/mpf/platforms/fast/communicators/rgb.py +++ b/mpf/platforms/fast/communicators/rgb.py @@ -62,9 +62,7 @@ async def soft_reset(self, **kwargs): def reset(self): """Reset the RGB processor.""" - # self.send_and_forget('RF:0') # TODO confirm if the RGB supports RF. I think not? self.send_and_forget('RA:000000') - # self.send_and_forget(f"RF:{Util.int_to_hex_string(self.config['led_fade_time'])}") def stopping(self): if self._led_task: diff --git a/mpf/platforms/fast/fast_led.py b/mpf/platforms/fast/fast_led.py index e95e87e66..eee37fe25 100644 --- a/mpf/platforms/fast/fast_led.py +++ b/mpf/platforms/fast/fast_led.py @@ -14,14 +14,13 @@ class FASTDirectLED: __slots__ = ["number", "number_int", "dirty", "hardware_fade_ms", "log", "channels", "machine", "platform"] - def __init__(self, number: str, hardware_fade_ms: int, platform) -> None: + def __init__(self, number: str, platform) -> None: """Initialize FAST LED on RGB processor.""" self.number = number self.number_int = Util.hex_string_to_int(number) self.dirty = True self.machine = platform.machine self.platform = platform - self.hardware_fade_ms = hardware_fade_ms self.log = logging.getLogger('FASTLED') self.channels = [None, None, None] # type: List[Optional[FASTDirectLEDChannel]] # All FAST LEDs are 3 element RGB and are set using hex strings