Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp@17:04c9b524dd94, 2017-04-11 (annotated)
- Committer:
- garphil
- Date:
- Tue Apr 11 22:58:06 2017 +0000
- Revision:
- 17:04c9b524dd94
- Parent:
- 16:8ae70f0b8fca
- Child:
- 20:cdbc31a89c7f
Template for Lalabox development
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fbd38 | 16:8ae70f0b8fca | 1 | /* |
garphil | 17:04c9b524dd94 | 2 | * Crealab Template |
fbd38 | 16:8ae70f0b8fca | 3 | * |
fbd38 | 16:8ae70f0b8fca | 4 | * Version 2.0, March 12, 2017 |
fbd38 | 16:8ae70f0b8fca | 5 | * for Nucleo32: F303K8 |
fbd38 | 16:8ae70f0b8fca | 6 | * |
fbd38 | 16:8ae70f0b8fca | 7 | */ |
fbd38 | 16:8ae70f0b8fca | 8 | |
garphil | 14:839ab5f50d40 | 9 | #include "Crealab.h" |
garphil | 12:60c531df03fd | 10 | Serial bt_uart(PA_9, PA_10); |
garphil | 17:04c9b524dd94 | 11 | Serial pc_uart(USBTX, USBRX); |
fbd38 | 16:8ae70f0b8fca | 12 | |
garphil | 17:04c9b524dd94 | 13 | / |
garphil | 2:050f12806bc5 | 14 | // ---------------- PIN DEFINITIONS --------------------- |
garphil | 2:050f12806bc5 | 15 | DigitalOut myled(LED1); // Blinking LED |
fbd38 | 16:8ae70f0b8fca | 16 | InterruptIn buttonBox(PB_1); |
garphil | 2:050f12806bc5 | 17 | |
garphil | 5:f62e799558c3 | 18 | |
fbd38 | 16:8ae70f0b8fca | 19 | /* Main Routine */ |
fbd38 | 16:8ae70f0b8fca | 20 | int main() |
fbd38 | 16:8ae70f0b8fca | 21 | { |
garphil | 1:ab4c9a0a5374 | 22 | myled = 1; // To see something is alive |
garphil | 17:04c9b524dd94 | 23 | |
garphil | 1:ab4c9a0a5374 | 24 | } |