this is simple digital in for ublox c027

Dependencies:   mbed

Fork of DigitalIn_HelloWorld_Mbed by mbed official

Committer:
irsanjul
Date:
Wed Mar 18 03:53:02 2015 +0000
Revision:
4:a69bbacf287f
Parent:
3:e2f865861a7a
This is the simple of Digital In program

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 0:aaf5a9d465fd 1 #include "mbed.h"
irsanjul 4:a69bbacf287f 2
irsanjul 4:a69bbacf287f 3 DigitalOut d1(P0_0), d2(P0_1), d3(P0_24), d4(P0_25);
irsanjul 4:a69bbacf287f 4 Serial pc(USBTX, USBRX);
irsanjul 4:a69bbacf287f 5
mbed_official 0:aaf5a9d465fd 6 int main() {
mbed_official 0:aaf5a9d465fd 7 while(1) {
irsanjul 4:a69bbacf287f 8 pc.printf("%d\t%d\t%d\t%d\r\n",Do1.read(), Do2.read(), Do3.read(), Do4.read());
irsanjul 4:a69bbacf287f 9 wait(0.5);
mbed_official 0:aaf5a9d465fd 10 }
mbed_official 0:aaf5a9d465fd 11 }