test reed switch for bike cadence & speed

Dependencies:   mbed

Fork of Blinking Led by Icarus Sensors

main.cpp

Committer:
smigielski
Date:
2014-11-19
Revision:
2:c76222c6370a
Parent:
0:b729782a3ad7
Child:
3:65d6deb7d07b

File content as of revision 2:c76222c6370a:

#include "mbed.h"

DigitalOut led(LED1); //P0_18 in NRF51822_MKIT

int main() {
    while(1) {
        led = 1; // LED is ON
        wait(0.05); // 50 ms
        led = 0; // LED is OFF
        wait(0.05); // 50 ms
    }
}