Noduino Interrupts
来自Jack's Lab
(版本间的差异)
(以“== Overview == <br><br>”为内容创建页面) |
|||
| 第1行: | 第1行: | ||
== Overview == | == Overview == | ||
| + | |||
| + | * attachInterrupt() | ||
| + | * detachInterrupt() | ||
| + | * noInterrupts() | ||
| + | <br><br> | ||
| + | |||
| + | == Examples == | ||
| + | |||
| + | [[文件:RotaryEncoderWaveform.gif]] | ||
| + | |||
| + | Use an encoder example, D8 connect to the channel A, D9 connect to the channel B to receive the interrupt: | ||
| + | |||
| + | <source lang=cpp> | ||
| + | |||
| + | </source> | ||
| + | |||
| + | <br><br> | ||
| + | <br><br> | ||
| + | <br><br> | ||
| + | <br><br> | ||
| + | <br><br> | ||
| + | <br><br> | ||
| + | <br><br> | ||
| + | <br><br> | ||
| + | <br><br> | ||
<br><br> | <br><br> | ||
2016年8月28日 (日) 08:37的版本
1 Overview
- attachInterrupt()
- detachInterrupt()
- noInterrupts()
2 Examples
Use an encoder example, D8 connect to the channel A, D9 connect to the channel B to receive the interrupt:
