From 0269d969b557fe24fdfe1e3412e44f6d1358638b Mon Sep 17 00:00:00 2001 From: Jonas Zeunert Date: Fri, 23 Nov 2018 16:13:36 +0100 Subject: [PATCH] some refactoring --- .../contrib/json_example/Lamp_Config.json | 9 +++ .../contrib/json_example/Solenoid_Config.json | 57 ++++++++++++++++ ...put_item_config.json => Sound_Config.json} | 68 +------------------ 3 files changed, 69 insertions(+), 65 deletions(-) create mode 100644 FlippR-Driver/contrib/json_example/Lamp_Config.json create mode 100644 FlippR-Driver/contrib/json_example/Solenoid_Config.json rename FlippR-Driver/contrib/json_example/{output_item_config.json => Sound_Config.json} (72%) diff --git a/FlippR-Driver/contrib/json_example/Lamp_Config.json b/FlippR-Driver/contrib/json_example/Lamp_Config.json new file mode 100644 index 0000000..5cee167 --- /dev/null +++ b/FlippR-Driver/contrib/json_example/Lamp_Config.json @@ -0,0 +1,9 @@ +{ + "lamps" : + [ + { + "address" : 0, + "name" : "Special 100000 points" + } + ] +} \ No newline at end of file diff --git a/FlippR-Driver/contrib/json_example/Solenoid_Config.json b/FlippR-Driver/contrib/json_example/Solenoid_Config.json new file mode 100644 index 0000000..ba39761 --- /dev/null +++ b/FlippR-Driver/contrib/json_example/Solenoid_Config.json @@ -0,0 +1,57 @@ +{ + "solenoids" : + [ + { // todo is this solenoid? + "address" : 68, + "name" : "Flipper Relay" + }, + { + "address" : 88, + "name" : "Out Hole" + }, + { + "address" : 91, + "name" : "Bottom Right Pop" + }, + { // todo + "address" : 100, + "name" : "Top Flipper Relay" + }, + { + "address" : 101, + "name" : "Right Kicker" + }, + { + "address" : 103, + "name" : "Top Central Bank" + }, + { + "address" : 104, + "name" : "Coin Mechanism Coil" + }, + { + "address" : 105, + "name" : "Top Left Pop" + }, + { + "address" : 106, + "name" : "Bottom Right Bank" + }, + { + "address" : 107, + "name" : "Bottom Left Bank" + }, + { + "address" : 108, + "name" : "Knocker" + }, + { + "address" : 109, + "name" : "Right Flap" + }, + { + "address" : 110, + "name" : "Left Flap" + } + ] +} \ No newline at end of file diff --git a/FlippR-Driver/contrib/json_example/output_item_config.json b/FlippR-Driver/contrib/json_example/Sound_Config.json similarity index 72% rename from FlippR-Driver/contrib/json_example/output_item_config.json rename to FlippR-Driver/contrib/json_example/Sound_Config.json index b485b99..b9b160e 100644 --- a/FlippR-Driver/contrib/json_example/output_item_config.json +++ b/FlippR-Driver/contrib/json_example/Sound_Config.json @@ -1,5 +1,5 @@ { - "sounds" : + "sounds" : [ { "id:": 0, @@ -145,69 +145,7 @@ "id:": 28, "address" : "50", "description" : "Speech 1: \"You're good! But I'm still the Champ!\"" - }, + } - ], - "lamps" : - [ - { - "address" : 0, - "name" : "Special 100000 points" - } - ], - "solenoids" : - [ - { // todo is this solenoid? - "address" : 68, - "name" : "Flipper Relay" - }, - { - "address" : 88, - "name" : "Out Hole" - }, - { - "address" : 91, - "name" : "Bottom Right Pop" - }, - { // todo - "address" : 100, - "name" : "Top Flipper Relay" - }, - { - "address" : 101, - "name" : "Right Kicker" - }, - { - "address" : 103, - "name" : "Top Central Bank" - }, - { - "address" : 104, - "name" : "Coin Mechanism Coil" - }, - { - "address" : 105, - "name" : "Top Left Pop" - }, - { - "address" : 106, - "name" : "Bottom Right Bank" - }, - { - "address" : 107, - "name" : "Bottom Left Bank" - }, - { - "address" : 108, - "name" : "Knocker" - }, - { - "address" : 109, - "name" : "Right Flap" - }, - { - "address" : 110, - "name" : "Left Flap" - } - ] + ] } \ No newline at end of file