Priyank Kalgaonkar
/
TALab3BJoystickECE595
ECE595 - Lab 3 Part 2 - Joystick Program - TA
main.cpp
- Committer:
- priyank12p
- Date:
- 2021-01-15
- Revision:
- 0:4cb6e9d0da34
- Child:
- 1:af23cbc41990
File content as of revision 0:4cb6e9d0da34:
/* mbed Microcontroller Library * Copyright (c) 2019 ARM Limited * SPDX-License-Identifier: Apache-2.0 */ #include "mbed.h" DigitalIn button(D6); int main() { while(1){ if(button){ printf("Button Pressed\n\r"); wait(0.7); // simple debouncing } } }