🎨
MadMachine-Examples
  • Introduction
  • About our project
  • Getting Started
  • Tutorial
    • What is SwiftIO
    • How to use IDE
    • Libraries
    • MM SDK
  • Built-In Examples
    • GettingStarted
      • Blink
      • ReadDigitalInput
      • ReadAnalogInput
      • PWMBrightnessControl
    • SimpleIO
      • ButtoncontrolLED
      • BlinkAnalogIn
      • BlinkTimer
      • BrightnessAnalogIn
      • Debounce
      • LEDsBrightnessControl
      • PWMSoundOutput
      • PWMMelody
    • AdvancedIO
      • ILI9341
      • LCD1602
      • MidiPlayer
      • PCA9685
      • SHT3x
      • SSD1315
    • Challenge
      • LCDFamily
      • RobotArm
      • Tetris
    • MakerKit
      • Mission 01 Blink
      • Mission 02 RGB LED
      • Mission 03 Push Button
      • Mission 04 Potentiometer RGB
      • Mission 05 Buzzer
      • Mission 06 Seven Segment Display
      • Mission 07 DC Motor
      • Mission 08 Servo Motor
      • Mission 09 LCD
      • Mission 10 Humiture Sensor
  • Library Reference
  • FAQ
Powered by GitBook
On this page
  • Create new project
  • Get familiar with IDE
  • Menu bar
  • Main parts

Was this helpful?

  1. Tutorial

How to use IDE

PreviousWhat is SwiftIONextLibraries

Last updated 4 years ago

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.

Create new project

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:

Get familiar with IDE

Menu bar

👉 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.

Main parts

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.

  1. First of all, you need to import the built-in library SwiftIO.

  2. 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.

  3. 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.