Mercurial > hg > beaglert
diff examples/d-box/render.cpp @ 373:3bed6b09223c prerelease
Updated NE10 library to the latest version; needs a corresponding update to the /usr/include/ne10 header files on the SD image. Updated examples to compile against new version, and reordered D-Box channels to account for new PRU-based DAC channel reordering.
author | andrewm |
---|---|
date | Thu, 09 Jun 2016 20:03:09 +0100 |
parents | 421a69d42943 |
children |
line wrap: on
line diff
--- a/examples/d-box/render.cpp Thu Jun 09 18:16:05 2016 +0100 +++ b/examples/d-box/render.cpp Thu Jun 09 20:03:09 2016 +0100 @@ -22,13 +22,16 @@ // 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 +// Update June 2016: this is no longer needed in the latest Bela +// release, but is kept here for convenience: it used to be +// 6 4 2 0 1 3 5 7 for the DAC pins +#define DAC_PIN0 0 +#define DAC_PIN1 1 #define DAC_PIN2 2 -#define DAC_PIN3 0 -#define DAC_PIN4 1 -#define DAC_PIN5 3 -#define DAC_PIN6 5 +#define DAC_PIN3 3 +#define DAC_PIN4 4 +#define DAC_PIN5 5 +#define DAC_PIN6 6 #define DAC_PIN7 7 #define ADC_PIN0 0