Guide

1/22/2018 micro:bot Kit Experiment Guide - learn.sparkfun.com
https://learn.sparkfun.com/tutorials/microbot-kit-experiment-guide/all#about-the-motobit-board 38/75
If you have used Arduino before, you probably know about a thing called a library; which is a collection of code that
extends the functionality of the core programming language. MakeCode packages work the same way.
There are some amazing differences between Arduino libraries and MakeCode packages. One of them is that
MakeCode packages include JavaScript functions, which you can use when programming in text, as well as all of the
blocks you need to program using the block method. This makes learning and using new packages straightforward
and shortens the time to awesome when setting out to build the project of your dreams.
Installing a MakeCode Package
To install or add a new package to your MakeCode toolbox (the list of different block groups), click on “Advanced” and
then on “Add Package.”
From here you can search for “SparkFun moto-bit,” and it should show up as a public package in the list. Go ahead
and click on it.
This will add all of the blocks to your toolbox. In general, this is a bit tricky as, depending on how the package was
written, it may either have its own toolbox or just add blocks to the existing ones. Take a look at your toolbox; for the
moto:bit you should see…