this is simple digital in for ublox c027

Dependencies:   mbed

Fork of DigitalIn_HelloWorld_Mbed by mbed official

main.cpp

Committer:
mbedAustin
Date:
2014-09-21
Revision:
3:e2f865861a7a
Parent:
0:aaf5a9d465fd
Child:
4:a69bbacf287f

File content as of revision 3:e2f865861a7a:

#include "mbed.h"
 
DigitalIn enable(p5);
DigitalOut led(LED1);
 
// blink LED when enable line is high
int main() {
    while(1) {
        if(enable) {
            led = !led;
        }
        wait(0.25);
    }
}