{"id":1534,"date":"2019-04-13T11:36:49","date_gmt":"2019-04-13T10:36:49","guid":{"rendered":"https:\/\/ofalcao.pt\/blog\/?p=1534"},"modified":"2019-04-13T13:39:59","modified_gmt":"2019-04-13T12:39:59","slug":"lego-officially-uses-ev3dev","status":"publish","type":"post","link":"https:\/\/ofalcao.pt\/blog\/2019\/lego-officially-uses-ev3dev","title":{"rendered":"LEGO officially uses ev3dev"},"content":{"rendered":"\n<p>Yesterday LEGO Education quietly released &#8220;<a href=\"https:\/\/education.lego.com\/support\/mindstorms-ev3\/python-for-ev3\">Python for EV3<\/a>&#8220;:<\/p>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p>You can now use your EV3 Brick to unleash the power of Python programming using MicroPython. Simply install the EV3 MicroPython image onto any micro SD card and boot up your EV3 Brick from it to start programming straight away.<\/p><\/blockquote><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>What it really is: a <a href=\"https:\/\/le-www-live-s.legocdn.com\/sc\/media\/files\/ev3-micropython\/ev3micropythonv100sdcardimage-4b8c8333736fafa1977ee7accbd3338f.zip?la=en-us\">full ev3dev image<\/a> with a micropython environment meant to be used from Visual Studio Code through an EV3 MicroPython extension.<\/p>\n\n\n\n<p>Amazing work from <a href=\"https:\/\/www.facebook.com\/david.lechner.902\">David Lechner<\/a>, <a href=\"https:\/\/www.facebook.com\/laurensvalk\">Laurens Valk<\/a>, and <a href=\"https:\/\/www.facebook.com\/anton.vanhoucke\">Anton Vanhoucke,<\/a> built over the shoulders of lots of other giants.  Congratulations to all!<\/p>\n\n\n\n<p>The <a href=\"https:\/\/le-www-live-s.legocdn.com\/sc\/media\/files\/ev3-micropython\/ev3micropythonv100-71d3f28c59a1e766e92a59ff8500818e.pdf?la=en-us\">documentation<\/a> states that it uses a &#8216;pybricks-micropython&#8217; environment and new &#8216;pybrick&#8217; library, not yet available outside of this image but that&#8217;s just a matter of time.<\/p>\n\n\n\n<p>Micropython programs tend to use less resources than common python and also start much faster.  The ev3dev-lang-python is still included on the image but for simple projects this new micropython environment will be of great use for people starting with EV3 and text-oriented languages.<\/p>\n\n\n\n<p>The image is really a full ev3dev stretch-based image, the &#8216;robot&#8217; user is still available (password is &#8220;maker&#8221;) so we can still access through SSH and use it the way we were used:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh robot@ev3dev.local\nPassword: \nLinux ev3dev 4.14.96-ev3dev-2.3.2-ev3 #1 PREEMPT Sun Jan 27 21:27:35 CST 2019 armv5tejl\n             _____     _\n   _____   _|___ \/  __| | _____   __\n  \/ _ \\ \\ \/ \/ |_ \\ \/ _` |\/ _ \\ \\ \/ \/\n |  __\/\\ V \/ ___) | (_| |  __\/\\ V \/\n  \\___| \\_\/ |____\/ \\__,_|\\___| \\_\/\n\nDebian stretch on LEGO MINDSTORMS EV3!<\/code><\/pre>\n\n\n\n<p>Kernel is very recent but there is already a newer version available &#8211; since LEGO keeped the link to ev3dev repositories so the usual &#8216;sudo apt update&#8217; and &#8216;sudo apt upgrade&#8217; works:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">The following NEW packages will be installed:<br>   linux-image-4.14.111-ev3dev-2.3.3-ev3 rtl8188eu-modules-4.14.111-ev3dev-2.3.3-ev3<br>   rtl8812au-modules-4.14.111-ev3dev-2.3.3-ev3<br> The following packages will be upgraded:<br>   jri-11-ev3 libnss-myhostname libnss-resolve libpam-systemd libsmbclient libsystemd0 libudev1 libwbclient0<br>   linux-image-ev3dev-ev3 samba-libs systemd systemd-sysv udev wget wpasupplicant<\/pre>\n\n\n\n<p>By the way, micropython says:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">robot@ev3dev:~$ micropython <br>\nMicroPython v1.9.4 on 2018-05-22; linux version<br>\nUse Ctrl-D to exit, Ctrl-E for paste mod<\/pre>\n\n\n\n<p>Just a few days after SPIKE anouncement, the future of LEGO robots seems now to be very very linked to linux, python and opensource<\/p>\n\n\n\n<p>Me happy! \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday LEGO Education quietly released &#8220;Python for EV3&#8220;: You can now use your EV3 Brick to unleash the power of Python programming using MicroPython. Simply install the EV3 MicroPython image onto any micro SD card and boot up your EV3 Brick from it to start programming straight away. What it really is: a full ev3dev &hellip; <a href=\"https:\/\/ofalcao.pt\/blog\/2019\/lego-officially-uses-ev3dev\" class=\"more-link\">Continuar a ler<span class=\"screen-reader-text\"> &#8220;LEGO officially uses ev3dev&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[1],"tags":[58,205,207,209],"series":[],"class_list":["post-1534","post","type-post","status-publish","format-standard","hentry","category-sem-categoria","tag-ev3","tag-ev3dev","tag-lego","tag-linux"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2Mhyv-oK","_links":{"self":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts\/1534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/comments?post=1534"}],"version-history":[{"count":0,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts\/1534\/revisions"}],"wp:attachment":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/media?parent=1534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/categories?post=1534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/tags?post=1534"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/series?post=1534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}