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
Diff: main.cpp
- Revision:
- 5:fc4f3c9cb438
- Parent:
- 4:52b5898cc757
- Child:
- 6:140aaeee9a5d
--- a/main.cpp Mon Jan 16 19:43:42 2017 +0000
+++ b/main.cpp Mon Jan 16 21:58:36 2017 +0000
@@ -1,10 +1,17 @@
#include "MicroBit.h"
#include "MicroBitMpr121.h"
+// https://lancaster-university.github.io/microbit-docs/advanced/#using-components-directly
+
MicroBitI2C i2c = MicroBitI2C(I2C_SDA0, I2C_SCL0);
MicroBitMpr121 mpr121 = MicroBitMpr121(i2c);
int main()
-{
-}
+{
+ mpr121.enable();
+ //mpr121.registerDump(pc);
+ while(1) {
+
+ }
+}
\ No newline at end of file