Tutorial 2 - SOS: This is an embedded program which controls LED1 in order to show a blinking SOS pattern. The tutorial starts to organize helper functions like "morse" in a brick library which will grow and grow with each tutorial. Platform specifics are identified in "bricks/platform.h" by setting proper defines (like LED_INVERTED), which are used to achieve platform independent behaviour. The program has been tested on Nordic nRF51-DK and STM NUCLEO-F303K8, NUCLEO-F401RE and NUCLEO-L476RG.

Dependencies:   mbed

Committer:
hux
Date:
Thu Dec 08 08:07:23 2016 +0000
Revision:
0:9bbb539e0614
Initial version of Tutorial 02 "SOS" program. The program controls LED1 to show a blinking SOS pattern. The code has been tested on Nordic nRF51-DK and STM NUCLEO-F303K8, NUCLEO-F401RE, NUCLEO-L476RG. Care about settings in "bricks/platform.h" !!!

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hux 0:9bbb539e0614 1 // platform.h - define platform specifics
hux 0:9bbb539e0614 2
hux 0:9bbb539e0614 3 #ifndef _PLATFORM_H_
hux 0:9bbb539e0614 4 #define _PLATFORM_H_
hux 0:9bbb539e0614 5
hux 0:9bbb539e0614 6 // platform specific defines - comment out platforms which are not used
hux 0:9bbb539e0614 7
hux 0:9bbb539e0614 8 //#define NORDIC
hux 0:9bbb539e0614 9 #define NUCLEO
hux 0:9bbb539e0614 10
hux 0:9bbb539e0614 11 #endif // _PLATFORM_H_