예제2) 인터럽트
Dependencies: mbed
Fork of ex1_mbed_first by
int.cpp
- Committer:
- robertchoi
- Date:
- 2017-10-13
- Revision:
- 2:6f28c6a05b96
File content as of revision 2:6f28c6a05b96:
#include "mbed.h" InterruptIn event(D5); DigitalOut led(LED1); void trigger() { printf("triggered!\n"); } int main() { event.rise(&trigger); while(1) { led = !led; wait(0.25); } }