Aditya Mehrotra
/
dyno_current_sense
Power board internal and external current sense to CAN
Diff: main.cpp
- Revision:
- 0:4395e270c925
diff -r 000000000000 -r 4395e270c925 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jun 08 19:49:15 2021 +0000 @@ -0,0 +1,23 @@ +/* mbed Microcontroller Library + * Copyright (c) 2019 ARM Limited + * SPDX-License-Identifier: Apache-2.0 + */ + +#include "mbed.h" +#include "platform/mbed_thread.h" + + +// Blinking rate in milliseconds +#define BLINKING_RATE_MS 500 + + +int main() +{ + // Initialise the digital pin LED1 as an output + DigitalOut led(LED1); + + while (true) { + led = !led; + thread_sleep_for(BLINKING_RATE_MS); + } +}