From 0bacdf670fb2166fef07fe9e12ca64c94518d327 Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Fri, 13 May 2022 00:03:35 -0400 Subject: [PATCH] ship example config files --- buttons.cfg.example | 37 +++++++++++++++++++++++++++++++++++++ server.cfg.example | 1 + 2 files changed, 38 insertions(+) create mode 100644 buttons.cfg.example create mode 120000 server.cfg.example diff --git a/buttons.cfg.example b/buttons.cfg.example new file mode 100644 index 0000000..c1657e7 --- /dev/null +++ b/buttons.cfg.example @@ -0,0 +1,37 @@ +; This file contains the configuration data for the buttons. + +[button] +; comma seperated list of button names +; button names omited from this list will be omited. +names=switch1,switch2,switch3,switch4 + +; The button is named as a section. +; When adding additional buttons, be sure to add the section +; name to the index on line 6. +[example] +; the GPIO pin to watch +pin: 1 +; macro to run when the pin goes low +close: "gl1" +; macro to run when the pin goes high +open: "gm*" + +[switch1] +pin: 12 +close: "gl21/2" +open: "gl21/1" + +[switch2] +pin: 16 +close: "gl22/2" +open: "gl22/1" + +[switch3] +pin: 20 +close: "gl23/2" +open: "gl23/1" + +[switch4] +pin: 21 +close: "gl24/2" +open: "gl24/1" diff --git a/server.cfg.example b/server.cfg.example new file mode 120000 index 0000000..a98ed94 --- /dev/null +++ b/server.cfg.example @@ -0,0 +1 @@ +baconscript/server.cfg \ No newline at end of file