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.
Dependencies: microbit microbitmpr121
main.cpp@1:f8107f2b2b99, 2017-01-16 (annotated)
- Committer:
- owenbrotherwood
- Date:
- Mon Jan 16 11:39:14 2017 +0000
- Revision:
- 1:f8107f2b2b99
- Parent:
- 0:026bd8011ba6
- Child:
- 2:b65d70daef8d
wip with errors on init enable and registerDump
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| owenbrotherwood | 0:026bd8011ba6 | 1 | #include "MicroBit.h" |
| owenbrotherwood | 0:026bd8011ba6 | 2 | #include "MicroBitMpr121.h" |
| owenbrotherwood | 0:026bd8011ba6 | 3 | |
| owenbrotherwood | 0:026bd8011ba6 | 4 | MicroBit uBit; |
| owenbrotherwood | 1:f8107f2b2b99 | 5 | MicroBitMpr121 mpr121(); |
| owenbrotherwood | 0:026bd8011ba6 | 6 | |
| owenbrotherwood | 0:026bd8011ba6 | 7 | int main() |
| owenbrotherwood | 1:f8107f2b2b99 | 8 | { |
| owenbrotherwood | 0:026bd8011ba6 | 9 | uBit.init(); |
| owenbrotherwood | 0:026bd8011ba6 | 10 | |
| owenbrotherwood | 1:f8107f2b2b99 | 11 | mpr121.init(); |
| owenbrotherwood | 1:f8107f2b2b99 | 12 | mpr121.enable(); |
| owenbrotherwood | 1:f8107f2b2b99 | 13 | mpr121.registerDump(); |
| owenbrotherwood | 1:f8107f2b2b99 | 14 | |
| owenbrotherwood | 0:026bd8011ba6 | 15 | uBit.display.scroll("HELLO WORLD! :)"); |
| owenbrotherwood | 0:026bd8011ba6 | 16 | |
| owenbrotherwood | 0:026bd8011ba6 | 17 | release_fiber(); |
| owenbrotherwood | 0:026bd8011ba6 | 18 | } |
| owenbrotherwood | 0:026bd8011ba6 | 19 |