{"id":1368,"date":"2018-08-09T09:48:48","date_gmt":"2018-08-09T08:48:48","guid":{"rendered":"https:\/\/ofalcao.pt\/blog\/?p=1368"},"modified":"2018-08-09T09:48:48","modified_gmt":"2018-08-09T08:48:48","slug":"new-version-of-python-ev3dev-available","status":"publish","type":"post","link":"https:\/\/ofalcao.pt\/blog\/2018\/new-version-of-python-ev3dev-available","title":{"rendered":"New version of python-ev3dev available"},"content":{"rendered":"<p>python-ev3dev <a href=\"https:\/\/www.ev3dev.org\/news\/2018\/08\/06\/python-ev3dev-v2\/\">v2 available in beta<\/a> (just for stretch)<\/p>\n<blockquote><p>The highlights include:<\/p>\n<ul>\n<li>New classes are available for coordinating motors: <code class=\"highlighter-rouge\">ev3dev2.motor.MotorSet<\/code>, <code class=\"highlighter-rouge\">ev3dev2.motor.MoveTank<\/code>, <code class=\"highlighter-rouge\">ev3dev2.motor.MoveSteering<\/code>, and <code class=\"highlighter-rouge\">ev3dev2.motor.MoveJoystick<\/code>.<\/li>\n<li>Classes representing a variety of motor speed units are available and accepted by many of the motor interfaces: see <a href=\"https:\/\/python-ev3dev.readthedocs.io\/en\/ev3dev-stretch\/motors.html#units\">our docs<\/a> to learn more.<\/li>\n<li>Friendlier interfaces for operating motors and sensors: check out <code class=\"highlighter-rouge\">ev3dev2.motor.Motor.on_for_rotations<\/code> and the other <code class=\"highlighter-rouge\">on_for_*<\/code> methods on motors.<\/li>\n<li>Easier interactivity via buttons: each button now has <code class=\"highlighter-rouge\">wait_for_pressed<\/code>, <code class=\"highlighter-rouge\">wait_for_released<\/code> and <code class=\"highlighter-rouge\">wait_for_bump<\/code><\/li>\n<li>Improved <code class=\"highlighter-rouge\">ev3dev2.sound.Sound<\/code> and <code class=\"highlighter-rouge\">ev3dev2.display.Display<\/code> interfaces<\/li>\n<li>New color conversion methods in <code class=\"highlighter-rouge\">ev3dev2.sensor.lego.ColorSensor<\/code><\/li>\n<\/ul>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>python-ev3dev v2 available in beta (just for stretch) The highlights include: New classes are available for coordinating motors: ev3dev2.motor.MotorSet, ev3dev2.motor.MoveTank, ev3dev2.motor.MoveSteering, and ev3dev2.motor.MoveJoystick. Classes representing a variety of motor speed units are available and accepted by many of the motor interfaces: see our docs to learn more. Friendlier interfaces for operating motors and sensors: check &hellip; <a href=\"https:\/\/ofalcao.pt\/blog\/2018\/new-version-of-python-ev3dev-available\" class=\"more-link\">Continuar a ler<span class=\"screen-reader-text\"> &#8220;New version of python-ev3dev available&#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":[],"series":[],"class_list":["post-1368","post","type-post","status-publish","format-standard","hentry","category-sem-categoria"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2Mhyv-m4","_links":{"self":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts\/1368","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=1368"}],"version-history":[{"count":0,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts\/1368\/revisions"}],"wp:attachment":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/media?parent=1368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/categories?post=1368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/tags?post=1368"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/series?post=1368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}