-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
496 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from mpf.core.mode import Mode | ||
from objprint import op | ||
import time | ||
|
||
class Attract(Mode): | ||
|
||
# def mode_init(self): | ||
# pass | ||
|
||
def mode_start(self, **kwargs): | ||
# self.machine.lights.l_backbox_match_00.color('white') | ||
# for each of the lights | ||
while True: | ||
for light in self.machine.lights.values(): | ||
time.sleep(0.333333) | ||
op(light.get_color()) | ||
# turn the light off | ||
# if light.color() == 'white': | ||
# light.color('black') | ||
# else: | ||
# light.color('white') | ||
|
||
# Set a delay to call self.my_callback() in 5 seconds | ||
# self.delay.add(5000, self.my_callback) | ||
|
||
# # turn LED "led01" red | ||
# op(self.machine.lights) | ||
# self.machine.leds.led01.color('red') | ||
|
||
# def mode_stop(self, **kwargs): | ||
# pass |
Oops, something went wrong.