-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Real eXample: Switching from Init Phase into Data Phase #4
Comments
The code we use in Pybricks is here. The high level sequence is this:
This is from memory, so trust the code over my memory 😄 |
Hi @dlech, Thanks for the explanation, it got me to step 9 for my personal project. Thanks, Peter |
This is expected: see https://github.com/pybricks/technical-info/blob/master/uart-protocol.md#data-messages To set the mode, use In Pybricks, we have found the position and speed data to be a bit buggy so we now use the |
Hello, besides the fact that i have studied some documents i got still stuck on how two tswitch from
Init phase into data phase when using a sensor (Motor encoder or light / color sensor.
To kake a long stoty short:
Dooes someone have a "real world" example code or code snippet how to handle the serial communication with a sensor.
Would be nice if it will be written in C.
Frameworks like Arduino or MBed are welcome, too
Thanks in advance
Marc
The text was updated successfully, but these errors were encountered: