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.
buildOptions.h@0:b471f7764d46, 2019-07-04 (annotated)
- Committer:
- epremeaux
- Date:
- Thu Jul 04 11:04:42 2019 +0000
- Revision:
- 0:b471f7764d46
- Child:
- 1:9a043ee174de
folder structure and two examples in 01_Basics to demonstrate the compiler define concept
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
epremeaux | 0:b471f7764d46 | 1 | // uncomment only ONE file to build in the example set |
epremeaux | 0:b471f7764d46 | 2 | |
epremeaux | 0:b471f7764d46 | 3 | |
epremeaux | 0:b471f7764d46 | 4 | /* 01_Basics: |
epremeaux | 0:b471f7764d46 | 5 | AnalogReadSerial |
epremeaux | 0:b471f7764d46 | 6 | Blink |
epremeaux | 0:b471f7764d46 | 7 | DigitalReadSerial |
epremeaux | 0:b471f7764d46 | 8 | Fade |
epremeaux | 0:b471f7764d46 | 9 | ReadAnalogVoltage |
epremeaux | 0:b471f7764d46 | 10 | */ |
epremeaux | 0:b471f7764d46 | 11 | //#define COMPILE_Analog_In |
epremeaux | 0:b471f7764d46 | 12 | #define COMPILE_Button_Interrupt |
epremeaux | 0:b471f7764d46 | 13 | |
epremeaux | 0:b471f7764d46 | 14 | /* |
epremeaux | 0:b471f7764d46 | 15 | |
epremeaux | 0:b471f7764d46 | 16 | 02_Digital |
epremeaux | 0:b471f7764d46 | 17 | BlinkWithoutDelay |
epremeaux | 0:b471f7764d46 | 18 | Button |
epremeaux | 0:b471f7764d46 | 19 | Debounce |
epremeaux | 0:b471f7764d46 | 20 | DigitalInputPullup |
epremeaux | 0:b471f7764d46 | 21 | StateChangeDetection |
epremeaux | 0:b471f7764d46 | 22 | ToneKeyboard |
epremeaux | 0:b471f7764d46 | 23 | ToneMelody |
epremeaux | 0:b471f7764d46 | 24 | ToneMultiple |
epremeaux | 0:b471f7764d46 | 25 | TonePitchFollower |
epremeaux | 0:b471f7764d46 | 26 | |
epremeaux | 0:b471f7764d46 | 27 | 03_Analog |
epremeaux | 0:b471f7764d46 | 28 | AnalogInOutSerial |
epremeaux | 0:b471f7764d46 | 29 | AnalogInput |
epremeaux | 0:b471f7764d46 | 30 | AnalogWrite |
epremeaux | 0:b471f7764d46 | 31 | Calibration |
epremeaux | 0:b471f7764d46 | 32 | Fading |
epremeaux | 0:b471f7764d46 | 33 | Smoothing |
epremeaux | 0:b471f7764d46 | 34 | |
epremeaux | 0:b471f7764d46 | 35 | 04_Communication |
epremeaux | 0:b471f7764d46 | 36 | AScii table |
epremeaux | 0:b471f7764d46 | 37 | Dimmer |
epremeaux | 0:b471f7764d46 | 38 | Graph |
epremeaux | 0:b471f7764d46 | 39 | Midi |
epremeaux | 0:b471f7764d46 | 40 | Multiserial |
epremeaux | 0:b471f7764d46 | 41 | physicalPixel |
epremeaux | 0:b471f7764d46 | 42 | ReadAScii string |
epremeaux | 0:b471f7764d46 | 43 | serial call response |
epremeaux | 0:b471f7764d46 | 44 | serial call response ascii |
epremeaux | 0:b471f7764d46 | 45 | serial event |
epremeaux | 0:b471f7764d46 | 46 | serial pass through |
epremeaux | 0:b471f7764d46 | 47 | virtual color mixer |
epremeaux | 0:b471f7764d46 | 48 | |
epremeaux | 0:b471f7764d46 | 49 | 05_Control |
epremeaux | 0:b471f7764d46 | 50 | arrays |
epremeaux | 0:b471f7764d46 | 51 | for loop itteration |
epremeaux | 0:b471f7764d46 | 52 | if statement conditional |
epremeaux | 0:b471f7764d46 | 53 | switch case |
epremeaux | 0:b471f7764d46 | 54 | switch case 2 |
epremeaux | 0:b471f7764d46 | 55 | while statement conditional |
epremeaux | 0:b471f7764d46 | 56 | |
epremeaux | 0:b471f7764d46 | 57 | 06_sensors |
epremeaux | 0:b471f7764d46 | 58 | ADXL3xx |
epremeaux | 0:b471f7764d46 | 59 | Knock |
epremeaux | 0:b471f7764d46 | 60 | Memsic2125 |
epremeaux | 0:b471f7764d46 | 61 | Ping |
epremeaux | 0:b471f7764d46 | 62 | GPS |
epremeaux | 0:b471f7764d46 | 63 | |
epremeaux | 0:b471f7764d46 | 64 | 07_Display |
epremeaux | 0:b471f7764d46 | 65 | bar graph |
epremeaux | 0:b471f7764d46 | 66 | row column scanning |
epremeaux | 0:b471f7764d46 | 67 | |
epremeaux | 0:b471f7764d46 | 68 | 08_strings |
epremeaux | 0:b471f7764d46 | 69 | character analysis |
epremeaux | 0:b471f7764d46 | 70 | string addition operator |
epremeaux | 0:b471f7764d46 | 71 | string append |
epremeaux | 0:b471f7764d46 | 72 | string case change |
epremeaux | 0:b471f7764d46 | 73 | string characters |
epremeaux | 0:b471f7764d46 | 74 | strinc comparison |
epremeaux | 0:b471f7764d46 | 75 | string constructor |
epremeaux | 0:b471f7764d46 | 76 | string index of |
epremeaux | 0:b471f7764d46 | 77 | string length |
epremeaux | 0:b471f7764d46 | 78 | length trim |
epremeaux | 0:b471f7764d46 | 79 | string replace |
epremeaux | 0:b471f7764d46 | 80 | string starts ends with |
epremeaux | 0:b471f7764d46 | 81 | substring |
epremeaux | 0:b471f7764d46 | 82 | string to int |
epremeaux | 0:b471f7764d46 | 83 | |
epremeaux | 0:b471f7764d46 | 84 | 09_USB |
epremeaux | 0:b471f7764d46 | 85 | Keyboard |
epremeaux | 0:b471f7764d46 | 86 | key and mouse |
epremeaux | 0:b471f7764d46 | 87 | mouse |
epremeaux | 0:b471f7764d46 | 88 | */ |