where is the c++ cheatsheet
Dependencies: microbit microbitmpr121
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 }
Generated on Sun Jul 17 2022 16:42:33 by 1.7.2