Lesson 1. Let's start! Hello world
-
Step 1. Please, visit the official website M5Stack (Fig. 1)
Figure 1. Official websStep 2. Select the DOWNLOAD section (Fig. 1.1);
Figure 1.1. DOWNLOAD section from our websiteStep 3. Download the archive with SP32-Arduino-IDE 1.8.5 and extract it into a new folder (Fig. 2);
Figure 2. The archive with the Arduino IDE is extracted to the folderStep 4. Download the CP210X drivers for your operating system and extract it to a new folder (Fig. 3);
Figure 3. Archive of drivers extracted to a folderStep 5. M5Stack connect to Your computer using the USB cable C (Fig. 3.1, 3.2);
Figure 3.1. The connection to M5Stack
Figure 3.2. Connecting to a computerStep 6. Select the appropriate version of the drivers. If you use:
- Windows 7, CP210xVCPInstaller_Win7_v5.40.24.exe;
- Windows 8, x86 10, CP210xVCPInstaller_x86_v6.7.0.0.exe;
- Windows 8, x64 10, CP210xVCPInstaller_x64_v6.7.0.0.exe.
Note: use the most new version of the operating system and related drivers.
Step 7. Complete all necessary steps in the installation wizard and restart the computer;
Step 8. Go to the folder Arduino-ESP32-IDE (Fig. 2) and open the app arduino.exe (Fig. 4);
Figure 4. The Arduino IDEStep 9. In the Sketch menu, select Include Library, M5Stack (Fig. 4.1);
Figure 4.1. Connection library M5StackStep 10. On the File menu, select Examples, M5Stack, Basics, Hello (Fig. 4.2);
Figure 4.2. Using the demo sketchStep 11. In the Tools menu, click Board index, M5Stack-Core-ESP32 (Fig. 4.3);
Figure 4.3. The Board selectionStep 12. In the Tools menu, select Port that corresponds to the COM port (Fig. 4.4), where the device Silicon Labs CP210x USB to UART Bridge (you can learn with the help of the device Manager in Windows under Ports (COM & LPT)) (Fig. 4.5);
Figure 4.4. The choice of COM port
Figure 4.5. Find device using device ManagerStep 13. Click the Upload button (Fig. 5);
Figure 5. Upload the firmware to the deviceStep 14. After the end of the flashing process you will receive the following text in a report field (Fig. 6);
Figure 6. Report about the successful completion of the firmwareStep 15. Pay attention to the screen of the device (Fig 7).
Figure 7. Hello World on the screen of the deviceStep 16. Prepare software is completed.