A collection of examples organized from basics to advanced.
Dependencies: mbed SDFileSystem
Mbed online compiler has no facility to easily manage a lot of programs or organized them in to related folders. This makes creating an examples and sample pack difficult.
This repository contains a single main.cpp file (which does very little), and a BuildOptions.h file. Simply uncomment the example you would like to compile from the build options. Each example is wrapped in a compiler directive.
If the directive does not include a description comment, it likely does not exist yet. If you would like to contribute to the Examples project, please contact me or fork and issue a pull request.
Diff: Digital_In.cpp
- Revision:
- 2:17a5c34b3a79
- Parent:
- 1:9a043ee174de
--- a/Digital_In.cpp Fri Jul 05 04:52:18 2019 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -#include "mbed.h" - -DigitalOut myled(LED1); -DigitalIn boton(D2); - -int main() { - while(1) { - if (boton == 0){ - myled = 1; - }else{ - myled = 0; - } - } -}