summaryrefslogtreecommitdiffstats
path: root/include/app_defs.h
diff options
context:
space:
mode:
authorDave Hodder <dave.hodder@focusrite.com>2017-01-09 14:30:20 +0000
committerDave Hodder <dave.hodder@focusrite.com>2017-01-09 14:30:20 +0000
commit59d4f28fe214601d323b2e0fb8a272040ba02a37 (patch)
tree357ea0d743432d88e20f24168e8c2da6f1bfd7fe /include/app_defs.h
parent50778f7bbb9ba2135df5e699521a61a83dcddbc6 (diff)
downloadlaunchpad-polymaker-59d4f28fe214601d323b2e0fb8a272040ba02a37.tar.gz
launchpad-polymaker-59d4f28fe214601d323b2e0fb8a272040ba02a37.zip
tidying up ADC api
Diffstat (limited to 'include/app_defs.h')
-rw-r--r--include/app_defs.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/app_defs.h b/include/app_defs.h
index 7a3efa1..d9b4311 100644
--- a/include/app_defs.h
+++ b/include/app_defs.h
@@ -107,5 +107,26 @@ typedef unsigned char u8;
107#define USER_AREA_SIZE 1024 107#define USER_AREA_SIZE 1024
108 108
109// ____________________________________________________________________________ 109// ____________________________________________________________________________
110//
111// Raw ADC reads. For technical reasons, the ADC layout is not the same as the
112// LED layout. Be sure to translate ADC values using the table below as you
113// need them!
114// ____________________________________________________________________________
115
116#define PAD_COUNT 64
117
118static const u8 ADC_MAP[PAD_COUNT] =
119{
120 11, 51, 12, 52, 13, 53, 14, 54,
121 15, 55, 16, 56, 17 ,57, 18, 58,
122 21, 61, 22, 62, 23, 63, 24, 64,
123 25, 65, 26, 66, 27, 67, 28, 68,
124 31, 71, 32, 72, 33, 73, 34, 74,
125 35, 75, 36, 76, 37, 77, 38, 78,
126 41, 81, 42, 82, 43, 83, 44, 84,
127 45, 85, 46, 86, 47, 87, 48, 88,
128};
129
130// ____________________________________________________________________________
110 131
111#endif 132#endif