Difference between revisions of "Python v2"

From cod3v
Line 24: Line 24:
See the SD card settings and instructions from [https://www.ev3dev.org/docs/getting-started/ ev3dev/getting-started] page.
See the SD card settings and instructions from [https://www.ev3dev.org/docs/getting-started/ 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 [https://www.youtube.com/watch?v=zw20vb5YrrA video] (embedded below) how to install and set up ev3dev browser. Note that LEGO's MicroPython is not needed. We use Ev3dev Python v2.
<youtube>zw20vb5YrrA</youtube>


[[Category:Coding]]
[[Category:Coding]]


</translate>
</translate>

Revision as of 12:04, 22 September 2020


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.