私はsdFatライブラリを使用していますアナログビンロガーの例では、
Github:SdFat/SdFat/examples/AnalogBinLogger /
The program is working fine and every thing but the thing is, this high speed datalogger uses interrupts and timers to make the ADC work at a pre-determined sampling frequency and it DOES NOT use the normal analogRead ()
私が欲しいのは、あるアナログピンの入力があらかじめ決められた値になったとき、私はデジタルピンにHIGHまたはLOWを書いて、
私の質問は、アナログビンロガーのサンプルで新しいサンプルを比較するにはどうすればよいのですか?
if ( analogRead() < 256 ) {// do something}
タイマーと割り込みを使用するため、analogRead()がプログラム内に存在しないことを認識します。