Mercurial > hg > beaglert
diff projects/d-box/render.cpp @ 48:42a683058b6a newapi
Documentation updates, and move some defines from BeagleRT.h into specific projects where they are used
author | andrewm |
---|---|
date | Thu, 28 May 2015 17:23:33 -0400 |
parents | 06f93bef7dd2 |
children | be427da6fb9c |
line wrap: on
line diff
--- a/projects/d-box/render.cpp Thu May 28 17:06:03 2015 -0400 +++ b/projects/d-box/render.cpp Thu May 28 17:23:33 2015 -0400 @@ -19,6 +19,27 @@ #undef DBOX_CAPE_TEST +// Mappings from pin numbers on PCB to actual DAC channels +// This gives the DAC and ADC connectors the same effective pinout +#define DAC_PIN0 6 +#define DAC_PIN1 4 +#define DAC_PIN2 2 +#define DAC_PIN3 0 +#define DAC_PIN4 1 +#define DAC_PIN5 3 +#define DAC_PIN6 5 +#define DAC_PIN7 7 + +#define ADC_PIN0 0 +#define ADC_PIN1 1 +#define ADC_PIN2 2 +#define ADC_PIN3 3 +#define ADC_PIN4 4 +#define ADC_PIN5 5 +#define ADC_PIN6 6 +#define ADC_PIN7 7 + + #define N_OCT 4.0 // maximum number of octaves on sensor 1 extern vector<OscillatorBank*> gOscBanks;