lancaster-university / microbit-samples

http://lancaster-university.github.io/microbit-docs
Other
114 stars 72 forks source link

Conflicting Information #16

Open tcurdt opened 6 years ago

tcurdt commented 6 years ago

When I look here

https://github.com/lancaster-university/microbit-dal/tree/v2.0.0-rc10

the following API is used

#include "MicroBitDisplay.h"

MicroBitDisplay display;

int main()
{
    display.scroll("Hello world!");
}

The samples here suggest

#include "MicroBit.h"

MicroBit uBit;

int main()
{
    uBit.init();
    uBit.display.scroll("HELLO WORLD! :)");
    release_fiber();
}

and now I am a little confused what it should be like.

sudoBash418 commented 3 years ago

I realize this is over 3 years old, but in case anyone else is here asking the same question, this page from the documentation explains the difference and why someone would want to use one over the other: https://lancaster-university.github.io/microbit-docs/advanced/