Mercurial > hg > beaglert
comparison examples/basic_pulseIn/render.cpp @ 310:02c4ca0e3718 prerelease
Renamed pinModeFrame -> pinMode
author | andrewm |
---|---|
date | Fri, 27 May 2016 18:29:20 +0100 |
parents | 1feb9c23ac57 |
children | 9dc5a0ccad25 |
comparison
equal
deleted
inserted
replaced
309:6b717992c8d2 | 310:02c4ca0e3718 |
---|---|
26 int gPulseLength = 1234; | 26 int gPulseLength = 1234; |
27 int gSamplesBetweenPulses = 10000; | 27 int gSamplesBetweenPulses = 10000; |
28 | 28 |
29 bool setup(BelaContext *context, void *userData) | 29 bool setup(BelaContext *context, void *userData) |
30 { | 30 { |
31 pinModeFrame(context, 0, gDigitalOutPin, OUTPUT); | 31 pinMode(context, 0, gDigitalOutPin, OUTPUT); |
32 pulseIn.init(context, gPulseInPin, 1); //third parameter is direction | 32 pulseIn.init(context, gPulseInPin, 1); //third parameter is direction |
33 return true; | 33 return true; |
34 } | 34 } |
35 | 35 |
36 // render() is called regularly at the highest priority by the audio engine. | 36 // render() is called regularly at the highest priority by the audio engine. |