This is an Arduino library that enables you attach an interrupt to any pin of Arduino Uno, Nano, Mini and other 328-based boards. The Arduino attachInterrupt() function only allows pines 2 & ~3.
今回は、前回のnodeMCU(ESP8266)で割り込みを使った話。 インターネット先生の情報だとちょい上手くいかなかったので、色々試したメモです。 やりたかったことは、ブザーを鳴らしてBメロをループしといて、ボタンを押したらサビに繋がる。です。
volatile uint32_t CNT; void setup(){ Serial.begin(115200); attachInterrupt(digitalPinToInterrupt(27), ISR_func, RISING); //or attachInterrupt(27, ISR_func, RISING ...