Skip to content

Commit

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

__slots__ = ["number", "number_int", "dirty", "hardware_fade_ms", "log", "channels", "machine", "platform"]

def __init__(self, number: str, platform) -> None:
def __init__(self, number: str, hardware_fade_ms: int, 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

1 comment on commit f819dca

@toomanybrians
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, committed a WIP to the wrong working branch

Please sign in to comment.