Skip to content
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

Sensor Mode #1

Open
TheEvandroLuis opened this issue Aug 27, 2024 · 3 comments
Open

Sensor Mode #1

TheEvandroLuis opened this issue Aug 27, 2024 · 3 comments

Comments

@TheEvandroLuis
Copy link

TheEvandroLuis commented Aug 27, 2024

from hub import port

S1d = port.F.device
S2d = port.D.device
S1d.mode(4) #RREFL
S2d.mode(4) #RREFL

while True:
    print(str(S1d.get()[0]) + " , " +str(S2d.get()[0]))

This part doesn't work here. Do I have to install anything before?

@a10036gt
Copy link
Member

What version of software you using with?

@TheEvandroLuis
Copy link
Author

TheEvandroLuis commented Aug 31, 2024

I'm using the lastest version of the spike app and my hub updated

@a10036gt
Copy link
Member

a10036gt commented Sep 1, 2024

If using python, we suggest using pybricks instead of it. Pybricks can use class PUPDevice to read RRFEL data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants