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: main.cpp
- Revision:
- 0:b471f7764d46
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Jul 04 11:04:42 2019 +0000 @@ -0,0 +1,25 @@ +/******************************************************************* + * Examples collection + * By: Emery Premeaux + * Date: July 2019 + * Idea: https://os.mbed.com/questions/5956/How-do-I-put-multiple-example-cpp-files-/ + * + * For: STM32, Nucleo F401 etc + * Version: 0 + * + * + * USAGE: + * Just uncomment one program from the buildOptions.h file. Comment all others + * + *******************************************************************/ + +#include "mbed.h" +#include "buildOptions.h" + +/* + * We can define some common hardware for your particular board here which + * will then be applied to any sketch. You will need to redefine these + * for each board you use, or wrap them in #ifDef statements + */ + + \ No newline at end of file