Skip to content

Commit

Permalink
Merge branch 'feat/backbox-show'
Browse files Browse the repository at this point in the history
  • Loading branch information
unRARed committed Dec 19, 2024
2 parents 3bb5a29 + acc860f commit 06377b8
Show file tree
Hide file tree
Showing 14 changed files with 496 additions and 71 deletions.
89 changes: 89 additions & 0 deletions config/common/lights.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,98 +8,136 @@ lights:
subtype: matrix
number: 0-0
platform: opp
tags: tag_lights_match
l_backbox_match_10:
subtype: matrix
number: 0-1
platform: opp
tags: tag_lights_match
l_backbox_match_20:
subtype: matrix
number: 0-2
platform: opp
tags: tag_lights_match
l_backbox_match_30:
subtype: matrix
number: 0-3
platform: opp
tags: tag_lights_match
l_backbox_match_40:
subtype: matrix
number: 0-4
platform: opp
tags: tag_lights_match
l_backbox_match_50:
subtype: matrix
number: 0-5
platform: opp
tags: tag_lights_match
l_backbox_match_60:
subtype: matrix
number: 0-6
platform: opp
tags: tag_lights_match
l_backbox_match_70:
subtype: matrix
number: 0-7
platform: opp
tags: tag_lights_match
l_backbox_match_80:
subtype: matrix
number: 0-8
platform: opp
tags: tag_lights_match
l_backbox_match_90:
subtype: matrix
number: 0-9
platform: opp
tags: tag_lights_match
l_backbox_player_up1:
subtype: matrix
number: 0-10
platform: opp
tags: tag_lights_player_up
l_backbox_player_up2:
subtype: matrix
number: 0-11
platform: opp
tags: tag_lights_player_up
l_backbox_player_up3:
subtype: matrix
number: 0-12
platform: opp
tags: tag_lights_player_up
l_backbox_player_up4:
subtype: matrix
number: 0-13
platform: opp
tags: tag_lights_player_up
l_backbox_players_in1:
subtype: matrix
number: 0-14
platform: opp
tags:
- tag_lights_players_in
- tag_lights_info_lights
l_backbox_players_in2:
subtype: matrix
number: 0-15
platform: opp
tags:
- tag_lights_players_in
- tag_lights_info_lights
l_backbox_players_in3:
subtype: matrix
number: 0-16
platform: opp
tags:
- tag_lights_players_in
- tag_lights_info_lights
l_backbox_players_in4:
subtype: matrix
number: 0-17
platform: opp
tags:
- tag_lights_players_in
- tag_lights_info_lights
l_backbox_game_over:
subtype: matrix
number: 0-18
platform: opp
tags: tag_lights_info_lights
l_backbox_tilt:
subtype: matrix
number: 0-19
platform: opp
tags: tag_lights_info_lights
l_backbox_shoot_again:
subtype: matrix
number: 0-20
platform: opp
tags: tag_lights_info_lights
l_backbox_ball1:
subtype: matrix
number: 0-21
platform: opp
tags:
- tag_lights_active_ball
- tag_lights_info_lights
l_backbox_ball2:
subtype: matrix
number: 0-22
platform: opp
tags:
- tag_lights_active_ball
- tag_lights_info_lights
l_backbox_ball3:
subtype: matrix
number: 0-23
platform: opp
tags:
- tag_lights_active_ball
- tag_lights_info_lights

####################
# Board PLAYFIELD1 #
Expand Down Expand Up @@ -130,75 +168,99 @@ lights:
l_grooveline_lit:
subtype: matrix
number: 2-0
tags: tag_lights_grooveline
l_grooveline_01:
subtype: matrix
number: 2-1
tags: tag_lights_grooveline
l_grooveline_02:
subtype: matrix
number: 2-2
tags: tag_lights_grooveline
l_grooveline_03:
subtype: matrix
number: 2-3
tags: tag_lights_grooveline
l_grooveline_04:
subtype: matrix
number: 2-4
tags: tag_lights_grooveline
l_grooveline_05:
subtype: matrix
number: 2-5
tags: tag_lights_grooveline
l_grooveline_06:
subtype: matrix
number: 2-6
tags: tag_lights_grooveline
l_grooveline_07:
subtype: matrix
number: 2-7
tags: tag_lights_grooveline
l_grooveline_08:
subtype: matrix
number: 2-8
tags: tag_lights_grooveline
l_grooveline_09:
subtype: matrix
number: 2-9
tags: tag_lights_grooveline
l_grooveline_10:
subtype: matrix
number: 2-10
tags: tag_lights_grooveline
l_north_advance1:
subtype: matrix
number: 2-11
tags: tag_lights_north_advance
l_north_advance2:
subtype: matrix
number: 2-12
tags: tag_lights_north_advance
l_spinner_10:
subtype: matrix
number: 2-13
tags: tag_lights_spinner
l_spinner_09:
subtype: matrix
number: 2-14
tags: tag_lights_spinner
l_spinner_08:
subtype: matrix
number: 2-15
tags: tag_lights_spinner
l_spinner_07:
subtype: matrix
number: 2-16
tags: tag_lights_spinner
l_spinner_06:
subtype: matrix
number: 2-17
tags: tag_lights_spinner
l_spinner_05:
subtype: matrix
number: 2-18
tags: tag_lights_spinner
l_spinner_04:
subtype: matrix
number: 2-19
tags: tag_lights_spinner
l_spinner_03:
subtype: matrix
number: 2-20
tags: tag_lights_spinner
l_spinner_02:
subtype: matrix
number: 2-21
tags: tag_lights_spinner
l_spinner_01:
subtype: matrix
number: 2-22
tags: tag_lights_spinner
l_spinner_lit:
subtype: matrix
number: 2-23
tags: tag_lights_spinner

####################
# Board PLAYFIELD2 #
Expand All @@ -207,39 +269,51 @@ lights:
l_star4:
subtype: matrix
number: 3-8
tags: tag_lights_star
l_star3:
subtype: matrix
number: 3-9
tags: tag_lights_star
l_star2:
subtype: matrix
number: 3-10
tags: tag_lights_star
l_star1:
subtype: matrix
number: 3-11
tags: tag_lights_star
l_grand_01:
subtype: matrix
number: 3-12
tags: tag_lights_grand
l_grand_02:
subtype: matrix
number: 3-13
tags: tag_lights_grand
l_grand_03:
subtype: matrix
number: 3-14
tags: tag_lights_grand
l_grand_04:
subtype: matrix
number: 3-15
tags: tag_lights_grand
l_grand_05:
subtype: matrix
number: 3-16
tags: tag_lights_grand
l_pit_01:
subtype: matrix
number: 3-17
tags: tag_lights_pit
l_pit_02:
subtype: matrix
number: 3-18
tags: tag_lights_pit
l_pit_03:
subtype: matrix
number: 3-19
tags: tag_lights_pit
# UNUSED 3-20
# UNUSED 3-21
# UNUSED 3-22
Expand All @@ -255,18 +329,22 @@ lights:
l_bottom_outlane1:
subtype: matrix
number: 4-9
tags: tag_lights_outlane
l_shoot_again:
subtype: matrix
number: 4-10
l_arrow1a:
subtype: matrix
number: 4-11
tags: tag_lights_arrow
l_arrow1b:
subtype: matrix
number: 4-12
tags: tag_lights_arrow
l_top_outlane1:
subtype: matrix
number: 4-13
tags: tag_lights_outlane
# UNUSED 4-14
# UNUSED 4-15

Expand All @@ -277,36 +355,47 @@ lights:
l_bottom_outlane2:
subtype: matrix
number: 5-8
tags: tag_lights_outlane
l_arrow2a:
subtype: matrix
number: 5-9
tags: tag_lights_arrow
l_arrow2b:
subtype: matrix
number: 5-10
tags: tag_lights_arrow
l_top_outlane2:
subtype: matrix
number: 5-11
tags: tag_lights_outlane
l_prix_04:
subtype: matrix
number: 5-12
tags: tag_lights_prix
l_prix_03:
subtype: matrix
number: 5-13
tags: tag_lights_prix
l_prix_02:
subtype: matrix
number: 5-14
tags: tag_lights_prix
l_prix_01:
subtype: matrix
number: 5-15
tags: tag_lights_prix
l_lap_03:
subtype: matrix
number: 5-16
tags: tag_lights_lap
l_lap_02:
subtype: matrix
number: 5-17
tags: tag_lights_lap
l_lap_01:
subtype: matrix
number: 5-18
tags: tag_lights_lap
# UNUSED 5-19
# UNUSED 5-20
# UNUSED 5-21
Expand Down
Binary file removed misc/theme/grand-prix-logo.afdesign
Binary file not shown.
Binary file removed misc/theme/grand-prix-playfield-v2.afdesign
Binary file not shown.
Binary file removed misc/theme/grand-prix-playfield.afdesign
Binary file not shown.
Empty file added modes/attract/code/__init__.py
Empty file.
31 changes: 31 additions & 0 deletions modes/attract/code/attract.py
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
Loading

0 comments on commit 06377b8

Please sign in to comment.