Brian Tilton
/
BTilton-Lab2_Joystick_Interupt
Lab2_Part3 working
Fork of Bootcamp-Interrupt_Polling_Joystick by
main.cpp
- Committer:
- chris
- Date:
- 2012-10-15
- Revision:
- 0:0e4db18afd77
- Child:
- 1:102ef7d39407
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); } }