LEGO MINDSTORMS Education EV3 MicroPython Erste Schritte - Seite 10
Blättern Sie online oder laden Sie pdf Erste Schritte für Bildungseinrichtungen LEGO MINDSTORMS Education EV3 MicroPython herunter. LEGO MINDSTORMS Education EV3 MicroPython 17 Seiten.
CHAPTER
TWO
CREATING AND RUNNING PROGRAMS
Now that you have set up your computer and EV3 Brick, you are ready to start writing programs.
To make it easier to create and manage your programs, this chapter will outline how MicroPython projects and
programs are organised.
Programs are organised into project folders, as shown in Figure 2.1. A project folder is a directory on your
computer that contains the main program (main.py) and other optional scripts or files. The project folder and
its contents will be copied to the EV3 Brick, where the main program will be run.
This section outlines how to create a project and how to transfer it to the EV3 Brick.
Figure 2.1: A project contains a program called main.py and optional resources like sounds or MicroPython modules.
2.1 Creating a new project
To create a new project, open the EV3 MicroPython tab and click create a new project, as shown in Figure 2.2.
Enter a project name in the text field that appears and press Enter. When prompted, choose a location for this
program and confirm by clicking choose folder.
LEGO, the LEGO logo and MINDSTORMS are trademarks of the LEGO Group.
©2019 The LEGO Group.
8