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.

Committer:
epremeaux
Date:
Thu Jul 04 11:04:42 2019 +0000
Revision:
0:b471f7764d46
folder structure and two examples in 01_Basics to demonstrate the compiler define concept

Who changed what in which revision?

UserRevisionLine numberNew contents of line
epremeaux 0:b471f7764d46 1 /*******************************************************************
epremeaux 0:b471f7764d46 2 * Examples collection
epremeaux 0:b471f7764d46 3 * By: Emery Premeaux
epremeaux 0:b471f7764d46 4 * Date: July 2019
epremeaux 0:b471f7764d46 5 * Idea: https://os.mbed.com/questions/5956/How-do-I-put-multiple-example-cpp-files-/
epremeaux 0:b471f7764d46 6 *
epremeaux 0:b471f7764d46 7 * For: STM32, Nucleo F401 etc
epremeaux 0:b471f7764d46 8 * Version: 0
epremeaux 0:b471f7764d46 9 *
epremeaux 0:b471f7764d46 10 *
epremeaux 0:b471f7764d46 11 * USAGE:
epremeaux 0:b471f7764d46 12 * Just uncomment one program from the buildOptions.h file. Comment all others
epremeaux 0:b471f7764d46 13 *
epremeaux 0:b471f7764d46 14 *******************************************************************/
epremeaux 0:b471f7764d46 15
epremeaux 0:b471f7764d46 16 #include "mbed.h"
epremeaux 0:b471f7764d46 17 #include "buildOptions.h"
epremeaux 0:b471f7764d46 18
epremeaux 0:b471f7764d46 19 /*
epremeaux 0:b471f7764d46 20 * We can define some common hardware for your particular board here which
epremeaux 0:b471f7764d46 21 * will then be applied to any sketch. You will need to redefine these
epremeaux 0:b471f7764d46 22 * for each board you use, or wrap them in #ifDef statements
epremeaux 0:b471f7764d46 23 */
epremeaux 0:b471f7764d46 24
epremeaux 0:b471f7764d46 25