Hello World for ev3dev + Visual Studio Code + Go
This is a git repository to help you get started programming a robot using ev3dev in Visual Studio Code using the Go programming language.
- LEGO MINDSTORMS EV3, Dexter Industries Brick Pi, Mindsensors PiStorms, or FatcatLab EVB with ev3dev installed. Does not work with ev3dev-jessie! Be sure to grab a snapshot image of ev3dev-stretch.
- A computer (Windows, macOS, or Linux) with Go, Visual Studio Code and git (or GitHub Desktop) installed.
-
Download the vscode-hello-go project from GitHub and unzip it.
-
Open the
vscode-hello-go-masterfolder in Visual Studio Code. -
Click Show Recommendations when asked.
-
Install the
ev3dev-browserextension. The Go extension is optional, but it is nice to have too. -
After installation completes, click Reload and Reload Window.
-
Open the Explorer activity pane.
-
Click the arrow next to EV3DEV DEVICE BROWSER to open it.
-
Ensure that your ev3dev device is turned on and has a network connection to the host computer. USB, Bluetooth, Wi-Fi or wired will work.
-
Click the text where it says "Click here to connect to a device". A box will pop up that lists discovered devices. Select one.
-
Once the device has connected, you will see a green dot and the
/home/robotfolder. -
Press F5 to download the program and run it.
-
The Output pane will automatically open and show the status of the program and any error/debug messages.
-
Open the source code file, hello.go, to learn more.











