BrickTronic Posted August 1, 2021 Posted August 1, 2021 Hello, I want to learn PyBricks that seems to be a MicroPython Version. I'm novice here and want to find Information on Basics of the Language. For example : from mindstorms import MSHub, Motor, MotorPair, ColorSensor, DistanceSensor, App import hub as hb from mindstorms.control import wait_for_seconds, wait_until, Timer from mindstorms.operator import greater_than, greater_than_or_equal_to, less_than, less_than_or_equal_to, equal_to, not_equal_to import math So when I need some Functions of Library math, then I have to include them by import. But what is then difference to from mindstorms import MSHub ? And what is intention of from mindstorms.control import wait_for_seconds ? What is difference to from mindstorms import MSHub ? What commands are still included and has not to be imported ? Where can I find a Table/List/Overview about this ? Where can I find a Table/List what Modules are available for import and what they contains ? Sorry for this Newbe Questions, Jo Quote
David Lechner Posted August 2, 2021 Posted August 2, 2021 Pybricks is a 3rd-party firmware for LEGO MINDSTORMS and Powered Up hubs. It was actually created before the official LEGO MicroPython. Pybricks is documented at https://docs.pybricks.com. But it looks like you are using the official LEGO software. For documentation on the official LEGO firmware and MicroPython, see https://bricks.stackexchange.com/a/15844/3498 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.