You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a code example is presented on how to use individual classes from Codal, rather than its entirety via a global "uBit" instance.
This example no longer compiles, as the MicroBitDisplay class has no constructor without parameters. This requires several additional objects, making this example no longer trivial. The smallest working replacement for MicroBitDisplay display; I found was this:
I should mention, though, that above cumbersome replacement did allow me to almost halve the size of the resulting binary for my software. So not using uBit is still an interesting option to save resources.
At
microbit-docs/docs/advanced.md
Lines 25 to 33 in a456ede
This example no longer compiles, as the
MicroBitDisplay
class has no constructor without parameters. This requires several additional objects, making this example no longer trivial. The smallest working replacement forMicroBitDisplay display;
I found was this:... which may be too long for a convincing example.
The text was updated successfully, but these errors were encountered: