From 8ccbaaa4b7f2074d0857013f0793bd4f6284626e Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 9 Jan 2024 11:24:51 -0700 Subject: [PATCH] Attempt to read piezo analog inputs --- piezos.hh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 piezos.hh diff --git a/piezos.hh b/piezos.hh new file mode 100644 index 0000000..e7df121 --- /dev/null +++ b/piezos.hh @@ -0,0 +1,33 @@ +#pragma once + +// Standard setup for a Pro Micro + +/* + * Don't forget to do this (guitar pid=0x0004, drum pid=0x0005): + +< micro.build.vid=0x2341 +< micro.build.pid=0x8037 +-- +> micro.build.vid=0x1bad +> micro.build.pid=0x0004 + +< micro.build.extra_flags={build.usb_flags} +--- +> micro.build.extra_flags={build.usb_flags} -DCDC_DISABLED + + */ + +const int BUTTON_GREEN = 18; // A0 +const int BUTTON_RED = 19; // A1 +const int BUTTON_YELLOW = 20; // A2 +const int BUTTON_BLUE = 21; // A3 +const int BUTTON_ORANGE = 15; + +const int SOLO_GREEN = 9; +const int SOLO_RED = 8; +const int SOLO_YELLOW = 6; +const int SOLO_BLUE = 4; +const int SOLO_ORANGE = 14; + +const int BUTTON_PLUS = 1; +const int BUTTON_MINUS = 0;