An example of testing the micro:bit battery without any external components
Dependencies: microbit
Fork of microbit-component-display by
main.cpp@0:0c37474c8541, 2016-04-20 (annotated)
- Committer:
- JonnyA
- Date:
- Wed Apr 20 14:01:36 2016 +0000
- Revision:
- 0:0c37474c8541
- Child:
- 1:6c9081f485dd
Example of the display component as per the docs ; http://lancaster-university.github.io/microbit-docs/advanced/#using-components-directly
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JonnyA | 0:0c37474c8541 | 1 | /* See |
JonnyA | 0:0c37474c8541 | 2 | * http://lancaster-university.github.io/microbit-docs/advanced/ |
JonnyA | 0:0c37474c8541 | 3 | * for docs about using the micro:bit library |
JonnyA | 0:0c37474c8541 | 4 | */ |
JonnyA | 0:0c37474c8541 | 5 | #include "MicroBit.h" |
JonnyA | 0:0c37474c8541 | 6 | |
JonnyA | 0:0c37474c8541 | 7 | MicroBitDisplay display; |
JonnyA | 0:0c37474c8541 | 8 | |
JonnyA | 0:0c37474c8541 | 9 | int main() |
JonnyA | 0:0c37474c8541 | 10 | { |
JonnyA | 0:0c37474c8541 | 11 | while(1) |
JonnyA | 0:0c37474c8541 | 12 | display.scroll(":)"); |
JonnyA | 0:0c37474c8541 | 13 | } |