Franz Pucher
/
000_DigitalIn
DigitaIn Example
main.cpp
- Committer:
- fpucher
- Date:
- 2019-11-25
- Revision:
- 1:e92aff7a1cf0
- Parent:
- 0:1b90d953ef92
File content as of revision 1:e92aff7a1cf0:
#define BUTTON1 p14 #include "mbed.h" // Flash an LED while a DigitalIn is true DigitalIn enable(A1); DigitalOut led(LED1); int main() { while(1) { if(!enable) { led = !led; } wait(0.25); } }