To program mCore with C/C++, you need Arduino IDE (click here to learn about Arduino). You may install Arduino IDE referring to the steps below:
- Download and install the corresponding Arduino IDE.
- Download and install the CH340 driver required by mCore(restart your computer after the installation is done).
- Open Arduino IDE, refer to the documentation to download and configure the makeblock-library files.
- Then we start to debug the communication between arduino IDE and mCore with sample code Blink. Connect your mCore to computer with an official USB cable, and open the example Blink, then select the right board(it should be Arduino Uno) and COM port.
- Make sure the mCore is powered on and disconnected from other software.
- For a more obvious result, you may modify the program (modify the parameter from 1000 to 100), and then upload the program.
- When the uploading is done, the L light on mCore is expected to be blinking as below gif shows.
- After confirming the communication is OK, we start programming the electronic modules in Arduino IDE.
- Here we take RGB LED module as an example, firstly we open the example ColorLoopTest.
- Connect the RGB LED module to mCore, make the following modifications: "MeOrion.h" to "MeMCore.h", port to the actual one.
- Then upload the program. After the program is uploaded successfully, program effect is expected as below.
Comments
Do i need to use the modules to use the mbot? If not, what is the pin out for the ports?
Please sign in to leave a comment.