
LAB#1: InterruptIn
main.cpp
- Committer:
- chris
- Date:
- 2012-10-15
- Revision:
- 0:0e4db18afd77
File content as of revision 0:0e4db18afd77:
#include "mbed.h" BusIn joy(p15,p12,p13,p16); DigitalIn fire(p14); BusOut leds(LED1,LED2,LED3,LED4); int main() { while(1) { if (fire) { leds=0xf; } else { leds=joy; } wait(0.1); } }