The word "Library" in programming means one or a group of functions you can import into your code and use them in it. These functions are imported using the "import" command.
- 21 Feb 2020
Sometimes the functions you wish to import are placed in directories (folders) so you need to tell your code to look for the functions in a specific directory using the "from" command:
from pybricks.ev3devices import (Motor)
this command tells your program that you are using the Motor() command and it can be found in the "ev3devuces" directory of "pybricks".
Every library comes with a catalog that describes how every command can be used. To find the catalog of the EV3 MicroPython library, you need to press "Open user guide and examples" located under the "Create new project" button:
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons