How to use IDE
Last updated
Was this helpful?
Last updated
Was this helpful?
Now I will show you a brief introduction to MadMachine IDE. Here you can edit, build the code and download it to your board.
It simplified the whole process, and thus everyone can get started easily.
When you first open the IDE, it will appear like this:
First, you should click on Create a new MadMachine project.
Then you need to choose a Project name and Location.
Click Create.
And now you will enter the main interface:
👉 The menu bar on the top contains five different options:
MadMachine: know about the IDE version, adjust the theme and font size.
File: create, open and save the file or project.
Edit: modify your code using some basic operations, such as paste, copy, etc.
Window: choose the window setup you prefer.
Help: consult the website for more detailed information.
👉 On the left, there are four icons. They will be frequently used when you edit a project.
👉 On the right corner, you can see four icons:
Make sure you have connected the serial port to your computer with a USB cable.
Wait several seconds.
Select the right UART Port and click Connect.
After well connected, the information will begin to appear.
1 The Explorer panel enables you to find, open and manage the file you have created.
2 Here you can see some example codes offered for reference.
3 In the Editor panel, you can write, edit and modify code.
First of all, you need to import the built-in library SwiftIO.
Then, you can write your code. After modification, a small dot will appear next to the file name and it will disappear after you save the file.
For the code that needs to run over and over again, you should write it in loop while true
.
4 The right bottom part displays the output information about the building process. You can correct our code according to the messages.
The two icons on the right side are used to adjust the size of this panel.
I'm sure you have gotten familiar with the IDE 😆 .
Come on! Let's begin your first project.
: create a new file for the current project.
: save all files in the current project.
: save the file and build the code you have written.
: build the code we have written and then download it to your board.
: collapse the left Explorer panel. If you want to go back to the default layout, you can click it again.
: collapse the bottom information panel. If you want to go back to the default layout, you can click it again.
: Send serial data from your computer to the board and receive messages from the board. When you click on it, the Serial Monitor will pop up in a new window like this:
Click the second icon on the bottom left corner to open it. Double click on the mission and a new window with the code will appear.
When you download the project to board, you need to wait until a little icon appear in the status bar. And then, click on the Download icon.