this is simple digital in for ublox c027

Dependencies:   mbed

Fork of DigitalIn_HelloWorld_Mbed by mbed official

main.cpp

Committer:
irsanjul
Date:
2015-03-18
Revision:
4:a69bbacf287f
Parent:
3:e2f865861a7a

File content as of revision 4:a69bbacf287f:

#include "mbed.h"

DigitalOut d1(P0_0), d2(P0_1), d3(P0_24), d4(P0_25);
Serial pc(USBTX, USBRX);

int main() {
    while(1) {
        pc.printf("%d\t%d\t%d\t%d\r\n",Do1.read(), Do2.read(), Do3.read(), Do4.read());
        wait(0.5);
        }
}