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 #include "mbed.h"
epremeaux 0:b471f7764d46 2
epremeaux 0:b471f7764d46 3 DigitalOut myled(LED1);
epremeaux 0:b471f7764d46 4 DigitalIn boton(D2);
epremeaux 0:b471f7764d46 5
epremeaux 0:b471f7764d46 6 int main() {
epremeaux 0:b471f7764d46 7 while(1) {
epremeaux 0:b471f7764d46 8 if (boton == 0){
epremeaux 0:b471f7764d46 9 myled = 1;
epremeaux 0:b471f7764d46 10 }else{
epremeaux 0:b471f7764d46 11 myled = 0;
epremeaux 0:b471f7764d46 12 }
epremeaux 0:b471f7764d46 13 }
epremeaux 0:b471f7764d46 14 }