Hiya
Fork of microbit-hello-world by
main.cpp
- Committer:
- ch0pAsh
- Date:
- 2016-12-03
- Revision:
- 2:70682e0b1cff
- Parent:
- 1:d9027e699793
File content as of revision 2:70682e0b1cff:
#include "MicroBit.h" #include "mbed.h" Serial pc(USBTX, USBRX); MicroBit uBit; MicroBitPin P0(MICROBIT_ID_IO_P0, MICROBIT_PIN_P0, PIN_CAPABILITY_ANALOG); DHT sensor(PTD4,SEN11301P); int main() { // Initialise the micro:bit runtime. uBit.init(); // Insert your code here! uBit.display.scroll("HELLO WORLD! :)"); while(1) { pc.printf("Hi %d:)\r\n", P0.getAnalogValue()); } }