![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
CA 2.5 App Board Joystick
main.cpp
- Committer:
- vmg
- Date:
- 2020-07-26
- Revision:
- 0:fc75582c0f9d
File content as of revision 0:fc75582c0f9d:
#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); } }