Getting started with Arduino
Follow this guide to build the Arduino examples.
First, you have to install Arduino IDE for ESP32, not the existing Arduino. Then setup the Board configuration for ODROID-GO.
Install Arduino IDE for ESP32
You have to install following IDE for ESP32, not the existing Arduino.
There are official step-by-step guides for the supported platforms which are maintained by community members.
Setup the IDE for ODROID-GO
Install ODROID-GO libraries
Using the Arduino IDE Library Manager
Not working yet
We're going to release the ODROID-GO libraries soon.
- Run the ESP32 Arduino IDE
- Choose Sketch → Include Library → Manage Libraries…
- Search ODROID-GO and install the library.
- Reload the Arduino IDE
Windows
Execute a Git Bash program from the Start Menu and enter the following commands.
- host
git clone https://github.com/hardkernel/ODROID-GO.git $USERPROFILE/Documents/Arduino/libraries/ODROID-GO
Linux
Open a Terminal by pressing CTRL-ALT-T and enter the following commands.
- host
git clone https://github.com/hardkernel/ODROID-GO.git ~/Arduino/libraries/ODROID-GO
macOS
Open a Terminal from the launcher and enter the following commands.
- host
git clone https://github.com/hardkernel/ODROID-GO.git ~/Documents/Arduino/libraries/ODROID-GO
Select a target device
Arduino IDE has to know which board will be used for compiling and sending a data.
Select Tools → Board → ODROID ESP32.
Select a proper serial port
Arduino IDE has to know which port the device is connected to.
The port number depends on your system.
You might need to installCP2104 VCP drivers on your host computer if you can't open the serial port.
Windows
Linux
Since ODROID-GO always connects to the host PC via USB cable, select a USB device file.
Select Tools → Port → /dev/ttyUSB#.
Let's code with ODROID-GO
Now you're ready to write your source code.
To learn how to write source code, please refer to this guide: Hello World.