[問題] mcu擷取程式問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
c++
問題(Question):
大家好,我有一段程式需"連續"執行下列連結的動作來量測"最大值",請問要如何改?
http://hank032831.pixnet.net/album/photo/536584618
(arduino板子)
void setup() {
Serial.begin(9600);
}
void loop() {
int sensorValue = analogRead(A0);
Serial.println((sensorValue)* 31.25 / 1023);
delay(0.016); //1min
}
非常謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 120.108.10.197
※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1407000410.A.E54.html
※ 編輯: s4A111039 (120.108.10.197), 08/03/2014 01:28:48
推
08/05 00:22, , 1F
08/05 00:22, 1F
→
08/05 19:07, , 2F
08/05 19:07, 2F
討論串 (同標題文章)