Skip to content

Commit

Permalink
added Nano to MPF 0.57
Browse files Browse the repository at this point in the history
  • Loading branch information
toomanybrians committed Sep 26, 2023
1 parent c08d41c commit 56573a8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion mpf/config_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions mpf/platforms/fast/communicators/rgb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions mpf/platforms/fast/fast_led.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56573a8

Please sign in to comment.