comparison examples/mpr121/render.cpp @ 303:421a69d42943 prerelease

Changed BeagleRT -> Bela in defines and thread names; some preliminary mux capelet stuff
author andrewm
date Fri, 27 May 2016 17:40:44 +0100
parents e4392164b458
children 9dc5a0ccad25
comparison
equal deleted inserted replaced
302:b26e7c61e3b6 303:421a69d42943
52 if(!mpr121.begin(1, 0x5A)) { 52 if(!mpr121.begin(1, 0x5A)) {
53 rt_printf("Error initialising MPR121\n"); 53 rt_printf("Error initialising MPR121\n");
54 return false; 54 return false;
55 } 55 }
56 56
57 i2cTask = Bela_createAuxiliaryTask(readMPR121, 50, "beaglert-mpr121"); 57 i2cTask = Bela_createAuxiliaryTask(readMPR121, 50, "bela-mpr121");
58 readIntervalSamples = context->audioSampleRate / readInterval; 58 readIntervalSamples = context->audioSampleRate / readInterval;
59 59
60 for(int i = 0; i < NUM_TOUCH_PINS; i++) { 60 for(int i = 0; i < NUM_TOUCH_PINS; i++) {
61 gNormFrequencies[i] = 2.0 * M_PI * gFrequencies[i] / context->audioSampleRate; 61 gNormFrequencies[i] = 2.0 * M_PI * gFrequencies[i] / context->audioSampleRate;
62 } 62 }