2018-09-18から1日間の記事一覧

Arduinoで簡易パルスカウンタ

https://www.packtpub.com/mapt/book/web_development/9781785888564/3/ch03lvl1sec27/reading-and-counting-pulses-with-arduino int pin = 2; volatile unsigned int pulse; void setup() { Serial.begin(9600); pinMode(pin, INPUT); attachInterrupt(0, …