Priyank Kalgaonkar
/
TALab3BJoystickECE595
ECE595 - Lab 3 Part 2 - Joystick Program - TA
main.cpp
- Committer:
- priyank12p
- Date:
- 2021-01-16
- Revision:
- 2:af5f9d175643
- Parent:
- 1:af23cbc41990
- Child:
- 3:b7e534ebe607
File content as of revision 2:af5f9d175643:
#include "mbed.h" DigitalIn button(D2); int main (void) { int cnt = 0; while(1) { if (button) { cnt++; printf("Touch detected %d\n", cnt); while(button); } } }