Python v2

From wikiluntti

<languages />

<translate>

Python is a very powerful but programming language for ev3 robots, also.

Programming exercises (only five so far but these will give a solid ground to jump from):

The other sensors work similarly; eg. gyroscope sensor py v2 or ultrasonic sensor py v2 (distance meter) are rather easy to employ.

Preliminary things

SD Card

To set ev3dev running you need a SD card which should be made bootable to ev3dev-stretch. The installation (copying) can be made using Etcher.

Connect to your brick. I usually use the USB cable, and it works by plugging.

See the SD card settings and instructions from ev3dev/getting-started page.

Visual Studio Code

MS VS Code combines directly with Ev3 so that the programming can be made on your personal computer but the code is run on the Ev3 brick. Great IDE, though any other can be used as ev3dev is Linux and you can ssh there.

See the video (embedded below) how to install and set up ev3dev browser. Note that LEGO's MicroPython is not needed. We use Ev3dev Python v2.

</translate>