Mercurial > hg > beaglert
changeset 87:567bd8f76714
Added TODO in analogDigitalDemo
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sat, 18 Jul 2015 04:31:40 +0100 |
parents | 7cc79d46ecb9 |
children | 3a5823f7a11f |
files | projects/analogDigitalDemo/render.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/projects/analogDigitalDemo/render.cpp Sat Jul 18 02:29:03 2015 +0100 +++ b/projects/analogDigitalDemo/render.cpp Sat Jul 18 04:31:40 2015 +0100 @@ -33,6 +33,9 @@ we assume that gNumAnalogChannels=8, numAnalogFrames==8 and numDigitalFrames==numAudioFrames * */ { + /* + * TODO: as an exercise, you will need to set the pin mode before writing or reading the digital pins. + */ if((context->audioSampleCount&31)==0){ //every 32 frames... //ANALOG channels analogWriteFrame(context, 0, 0, analogReadFrame(context, 0,0));