Skip to content

ev3dev/vscode-hello-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vscode-hello-go

Hello World for ev3dev + Visual Studio Code + Go

Overview

This is a git repository to help you get started programming a robot using ev3dev in Visual Studio Code using the Go programming language.

Prerequisites

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

Step-by-Step

  1. Download the vscode-hello-go project from GitHub and unzip it.

  2. Open the vscode-hello-go-master folder in Visual Studio Code.

    screenshot

    screenshot

  3. Click Show Recommendations when asked.

    screenshot

  4. Install the ev3dev-browser extension. The Go extension is optional, but it is nice to have too.

    screenshot

  5. After installation completes, click Reload and Reload Window.

    screenshot

    screenshot

  6. Open the Explorer activity pane.

    screenshot

  7. Click the arrow next to EV3DEV DEVICE BROWSER to open it.

    screenshot

    screenshot

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

  9. Click the text where it says "Click here to connect to a device". A box will pop up that lists discovered devices. Select one.

    screenshot

  10. Once the device has connected, you will see a green dot and the /home/robot folder.

    screenshot

  11. Press F5 to download the program and run it.

  12. The Output pane will automatically open and show the status of the program and any error/debug messages.

    screenshot

    screenshot

  13. Open the source code file, hello.go, to learn more.

About

Hello World for ev3dev + Visual Studio Code + Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages