Owen Brotherwood / microbitmpr121-example

Dependencies:   microbit microbitmpr121

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?

UserRevisionLine numberNew 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