| Description |
|
It is possible to generate and attend external interrupts on the Wiring I/O board. There are 8 external interrupts, from 0 to 7 so there are 8 pins on the Wiring I/O board capable of external interrupts, 0, 1, 2, 3, 36, 37, 38, and 39 respectively. In addition to being regular digital pins, note that pins 0 and 1 are also used for the Wire library (TWI) and pins 2 and 3 are also the Serial1 serial port pins. The attachInterrupt() method sets the function that executes whenever an external interrupt is generated, and the detachInterrupt() method clears the function used to attend a specific interrupt.
Wiring I/O 보드에 외부
인터럽트 사용
가능하게 합니다. 0 부터 7
까지의 외부
인터럽트가 있습니다.
Wiring I/O 보드는 0, 1, 2, 3, 36, 37, 38
그리고 39 번 핀이
해당됩니다. 0과 1 은 TWI(I2C)
인터페이스와
중복됩니다. 2, 3 은 Serial1
시리얼 포트핀과
중복됩니다. attachInterrupt()
방법은 외부 인터럽트
발생가능하도록 하며
detachInterrupt() 방법은 지정된
인터럽트를
해지합니다.
|