where is the c++ cheatsheet

Dependencies:   microbit microbitmpr121

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "MicroBit.h"
00002 #include "MicroBitMpr121.h"
00003 
00004 // https://lancaster-university.github.io/microbit-docs/advanced/#using-components-directly
00005 
00006 MicroBitI2C i2c = MicroBitI2C(I2C_SDA0, I2C_SCL0);
00007 MicroBitMpr121 mpr121 = MicroBitMpr121(i2c);
00008 
00009 int main()
00010 {
00011     mpr121.enable();
00012     //mpr121.registerDump();
00013 
00014     while(1) {
00015         
00016     }
00017 }