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.
Fork of MicroBitDALImageRewrite by
MicroBit.cpp@1:3e0360107f98, 2015-04-16 (annotated)
- Committer:
- finneyj
- Date:
- Thu Apr 16 13:50:24 2015 +0000
- Revision:
- 1:3e0360107f98
- Parent:
- 0:47d8ba08580f
- Child:
- 4:f998ee705a20
Updates to include:; ; - Asynchronous Scrolltext(); - First iteration of MessageBus implementation; - Hardware configuration for SquareBoard protoype
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| finneyj | 0:47d8ba08580f | 1 | #include "inc/MicroBit.h" |
| finneyj | 0:47d8ba08580f | 2 | |
| finneyj | 0:47d8ba08580f | 3 | |
| finneyj | 0:47d8ba08580f | 4 | /** |
| finneyj | 0:47d8ba08580f | 5 | * Device level Message Bus abstraction |
| finneyj | 0:47d8ba08580f | 6 | */ |
| finneyj | 0:47d8ba08580f | 7 | |
| finneyj | 1:3e0360107f98 | 8 | MicroBitMessageBus MicroBit::MessageBus; |
| finneyj | 0:47d8ba08580f | 9 | |
| finneyj | 0:47d8ba08580f | 10 | void MicroBit::init() |
| finneyj | 0:47d8ba08580f | 11 | { |
| finneyj | 0:47d8ba08580f | 12 | |
| finneyj | 0:47d8ba08580f | 13 | } |
| finneyj | 0:47d8ba08580f | 14 | |
| finneyj | 0:47d8ba08580f | 15 | |
| finneyj | 0:47d8ba08580f | 16 | |
| finneyj | 0:47d8ba08580f | 17 | /** |
| finneyj | 0:47d8ba08580f | 18 | * Constructor. |
| finneyj | 0:47d8ba08580f | 19 | * Create a representation of a MicroBit device. |
| finneyj | 0:47d8ba08580f | 20 | * @param messageBus callback function to receive MicroBitMessageBus events. |
| finneyj | 0:47d8ba08580f | 21 | */ |
| finneyj | 1:3e0360107f98 | 22 | MicroBit::MicroBit() : |
| finneyj | 0:47d8ba08580f | 23 | userLED(MICROBIT_ID_USER_LED, MICROBIT_PIN_USER_LED), |
| finneyj | 1:3e0360107f98 | 24 | display(MICROBIT_ID_DISPLAY, 5, 5), |
| finneyj | 1:3e0360107f98 | 25 | leftButton(MICROBIT_ID_LEFT_BUTTON,MICROBIT_PIN_LEFT_BUTTON) |
| finneyj | 0:47d8ba08580f | 26 | |
| finneyj | 0:47d8ba08580f | 27 | { |
| finneyj | 0:47d8ba08580f | 28 | init(); |
| finneyj | 0:47d8ba08580f | 29 | } |
