Maciej Zemlo
/
IES-R1-0_1_0
Simple Murata Type ABZ test using online compiler.
Diff: main.cpp
- Revision:
- 0:2bd3bf797e94
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Oct 25 19:20:00 2020 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" +#include "platform/mbed_thread.h" + +#define BLINKING_RATE_MS 500 + +DigitalOut led2 ( PB_2 ) ; + +int main() { + while ( true ) { + led2 = !led2 ; + thread_sleep_for(BLINKING_RATE_MS); + } +} \ No newline at end of file