# HG changeset patch # User Giulio Moro # Date 1437190300 -3600 # Node ID 567bd8f76714231f5ad42e6c0fe1d093cad2bdb2 # Parent 7cc79d46ecb9d9aa7b14a816ab850ba18f400ce4 Added TODO in analogDigitalDemo diff -r 7cc79d46ecb9 -r 567bd8f76714 projects/analogDigitalDemo/render.cpp --- 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));