Mercurial > hg > beaglert
comparison examples/basic_button/render.cpp @ 310:02c4ca0e3718 prerelease
Renamed pinModeFrame -> pinMode
author | andrewm |
---|---|
date | Fri, 27 May 2016 18:29:20 +0100 |
parents | 1feb9c23ac57 |
children | db2fe4e1b88e |
comparison
equal
deleted
inserted
replaced
309:6b717992c8d2 | 310:02c4ca0e3718 |
---|---|
19 // | 19 // |
20 // Return true on success; returning false halts the program. | 20 // Return true on success; returning false halts the program. |
21 | 21 |
22 bool setup(BelaContext *context, void *userData) | 22 bool setup(BelaContext *context, void *userData) |
23 { | 23 { |
24 pinModeFrame(context, 0, P8_08, INPUT); | 24 pinMode(context, 0, P8_08, INPUT); |
25 pinModeFrame(context, 0, P8_07, OUTPUT); | 25 pinMode(context, 0, P8_07, OUTPUT); |
26 return true; | 26 return true; |
27 } | 27 } |
28 | 28 |
29 // render() is called regularly at the highest priority by the audio engine. | 29 // render() is called regularly at the highest priority by the audio engine. |
30 // Input and output are given from the audio hardware and the other | 30 // Input and output are given from the audio hardware and the other |