Simple Murata Type ABZ test using online compiler.

Committer:
yabool2001
Date:
Sun Oct 25 19:20:00 2020 +0000
Revision:
0:2bd3bf797e94
Simple Murata Type ABZ test using online compiler.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yabool2001 0:2bd3bf797e94 1 #include "mbed.h"
yabool2001 0:2bd3bf797e94 2 #include "platform/mbed_thread.h"
yabool2001 0:2bd3bf797e94 3
yabool2001 0:2bd3bf797e94 4 #define BLINKING_RATE_MS 500
yabool2001 0:2bd3bf797e94 5
yabool2001 0:2bd3bf797e94 6 DigitalOut led2 ( PB_2 ) ;
yabool2001 0:2bd3bf797e94 7
yabool2001 0:2bd3bf797e94 8 int main() {
yabool2001 0:2bd3bf797e94 9 while ( true ) {
yabool2001 0:2bd3bf797e94 10 led2 = !led2 ;
yabool2001 0:2bd3bf797e94 11 thread_sleep_for(BLINKING_RATE_MS);
yabool2001 0:2bd3bf797e94 12 }
yabool2001 0:2bd3bf797e94 13 }