test reed switch for bike cadence & speed

Dependencies:   mbed

Fork of Blinking Led by Icarus Sensors

Committer:
smigielski
Date:
Wed Nov 19 19:39:12 2014 +0000
Revision:
2:c76222c6370a
Parent:
0:b729782a3ad7
Child:
3:65d6deb7d07b
Going back to the simple example

Who changed what in which revision?

UserRevisionLine numberNew contents of line
smigielski 0:b729782a3ad7 1 #include "mbed.h"
smigielski 0:b729782a3ad7 2
smigielski 2:c76222c6370a 3 DigitalOut led(LED1); //P0_18 in NRF51822_MKIT
smigielski 0:b729782a3ad7 4
smigielski 0:b729782a3ad7 5 int main() {
smigielski 0:b729782a3ad7 6 while(1) {
smigielski 2:c76222c6370a 7 led = 1; // LED is ON
smigielski 2:c76222c6370a 8 wait(0.05); // 50 ms
smigielski 2:c76222c6370a 9 led = 0; // LED is OFF
smigielski 2:c76222c6370a 10 wait(0.05); // 50 ms
smigielski 0:b729782a3ad7 11 }
smigielski 0:b729782a3ad7 12 }