moved jsons
This commit is contained in:
13
FlippR-Driver/contrib/json_example/Input_Config.json
Normal file
13
FlippR-Driver/contrib/json_example/Input_Config.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"row": {
|
||||
"A": 15,
|
||||
"B": 16,
|
||||
"C": 1
|
||||
},
|
||||
"col": {
|
||||
"A": 4,
|
||||
"B": 5,
|
||||
"C": 6
|
||||
},
|
||||
"data": 13
|
||||
}
|
||||
193
FlippR-Driver/contrib/json_example/Input_Matrix_Config.json
Normal file
193
FlippR-Driver/contrib/json_example/Input_Matrix_Config.json
Normal file
@@ -0,0 +1,193 @@
|
||||
{
|
||||
"global_bounce_time" : 10,
|
||||
"input_matrix" :
|
||||
[
|
||||
{
|
||||
"name" : "Out hole",
|
||||
"address" : 16,
|
||||
"priority" : 1,
|
||||
"bounce_time" : 10
|
||||
},
|
||||
{
|
||||
"name" : "Left outer exit canal",
|
||||
"address" : 17,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "Inner left canal",
|
||||
"address" : 18,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "Left flap contacts",
|
||||
"address" : 19,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "Right flap contacts",
|
||||
"address" : 20,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "Right inner canal",
|
||||
"address" : 21,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "Right central exit canal",
|
||||
"address" : 22,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "Right kicker contact",
|
||||
"address" : 23,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "Contacts",
|
||||
"address" : 24,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "1st moving target bottom left bank",
|
||||
"address" : 25,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "2nd moving target bottom left bank",
|
||||
"address" : 26,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "3rd moving target bottom left bank",
|
||||
"address" : 27,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "4th moving target bottom left bank",
|
||||
"address" : 28,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "Fixed special red target",
|
||||
"address" : 29,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "Fixed special orange target",
|
||||
"address" : 30,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "1st moving target bottom right bank",
|
||||
"address" : 31,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "2nd moving target bottom right bank",
|
||||
"address" : 32,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "3rd moving target bottom right bank",
|
||||
"address" : 33,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "Spinning target",
|
||||
"address" : 34,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "1st button",
|
||||
"address" : 35,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "2nd button",
|
||||
"address" : 36,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "3rd button",
|
||||
"address" : 37,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "4th button",
|
||||
"address" : 38,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "5th button",
|
||||
"address" : 39,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "1st moving target top central bank",
|
||||
"address" : 40,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "2nd moving target top central bank",
|
||||
"address" : 41,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "3rd moving target top central bank",
|
||||
"address" : 42,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "4th moving target top central bank",
|
||||
"address" : 43,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "5th moving target top central bank",
|
||||
"address" : 44,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "1st fixed target",
|
||||
"address" : 45,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "2nd fixed target",
|
||||
"address" : 46,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "Top left pop contact",
|
||||
"address" : 47,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "Bottom right pop contact",
|
||||
"address" : 48,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "5th fixed target",
|
||||
"address" : 49,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "4th fixed target",
|
||||
"address" : 50,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "3rd fixed target",
|
||||
"address" : 51,
|
||||
"priority" : 2
|
||||
},
|
||||
{
|
||||
"name" : "Rising ball contact",
|
||||
"address" : 52,
|
||||
"priority" : 2
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,134 +0,0 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.9
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
|
||||
.PHONY : default_target
|
||||
|
||||
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
|
||||
.NOTPARALLEL:
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E remove -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /home/johannes/git/flippr-code/FlippR-Driver
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /home/johannes/git/flippr-code/FlippR-Driver
|
||||
|
||||
#=============================================================================
|
||||
# Targets provided globally by CMake.
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||
/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : rebuild_cache
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache/fast: rebuild_cache
|
||||
|
||||
.PHONY : rebuild_cache/fast
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
|
||||
/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
|
||||
.PHONY : edit_cache
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache/fast: edit_cache
|
||||
|
||||
.PHONY : edit_cache/fast
|
||||
|
||||
# The main all target
|
||||
all: cmake_check_build_system
|
||||
cd /home/johannes/git/flippr-code/FlippR-Driver && $(CMAKE_COMMAND) -E cmake_progress_start /home/johannes/git/flippr-code/FlippR-Driver/CMakeFiles /home/johannes/git/flippr-code/FlippR-Driver/json_example/CMakeFiles/progress.marks
|
||||
cd /home/johannes/git/flippr-code/FlippR-Driver && $(MAKE) -f CMakeFiles/Makefile2 json_example/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /home/johannes/git/flippr-code/FlippR-Driver/CMakeFiles 0
|
||||
.PHONY : all
|
||||
|
||||
# The main clean target
|
||||
clean:
|
||||
cd /home/johannes/git/flippr-code/FlippR-Driver && $(MAKE) -f CMakeFiles/Makefile2 json_example/clean
|
||||
.PHONY : clean
|
||||
|
||||
# The main clean target
|
||||
clean/fast: clean
|
||||
|
||||
.PHONY : clean/fast
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall: all
|
||||
cd /home/johannes/git/flippr-code/FlippR-Driver && $(MAKE) -f CMakeFiles/Makefile2 json_example/preinstall
|
||||
.PHONY : preinstall
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall/fast:
|
||||
cd /home/johannes/git/flippr-code/FlippR-Driver && $(MAKE) -f CMakeFiles/Makefile2 json_example/preinstall
|
||||
.PHONY : preinstall/fast
|
||||
|
||||
# clear depends
|
||||
depend:
|
||||
cd /home/johannes/git/flippr-code/FlippR-Driver && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
.PHONY : depend
|
||||
|
||||
# Help Target
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... clean"
|
||||
@echo "... depend"
|
||||
@echo "... rebuild_cache"
|
||||
@echo "... edit_cache"
|
||||
.PHONY : help
|
||||
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
cd /home/johannes/git/flippr-code/FlippR-Driver && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
||||
45
FlippR-Driver/contrib/json_example/Output_Config.json
Normal file
45
FlippR-Driver/contrib/json_example/Output_Config.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"display_board" :
|
||||
{
|
||||
|
||||
},
|
||||
"driver_board" :
|
||||
{
|
||||
"i2c_address" : 32,
|
||||
"pin_base" : 65,
|
||||
"pin-select" :
|
||||
{
|
||||
"A" : 0,
|
||||
"B" : 1,
|
||||
"C" : 2
|
||||
},
|
||||
"data" : 3,
|
||||
"CL" : 4,
|
||||
"latch-select" :
|
||||
{
|
||||
"A" : 5,
|
||||
"B" : 6,
|
||||
"C" : 7,
|
||||
"mux1" : 8,
|
||||
"mux2" : 9
|
||||
}
|
||||
|
||||
},
|
||||
"sound_board" :
|
||||
{
|
||||
"i2c_address" : 33,
|
||||
"pin_base" : 81,
|
||||
"fire" : 7,
|
||||
"sound_address" :
|
||||
{
|
||||
"A" : 0,
|
||||
"B" : 1,
|
||||
"C" : 2,
|
||||
"D" : 3,
|
||||
"E" : 4,
|
||||
"F" : 5,
|
||||
"G" : 6
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
14
FlippR-Driver/contrib/json_example/output_item_config.json
Normal file
14
FlippR-Driver/contrib/json_example/output_item_config.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"sounds" :
|
||||
{
|
||||
|
||||
},
|
||||
"lamps" :
|
||||
{
|
||||
|
||||
},
|
||||
"solenoids" :
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user