Unable to Read in Data From IR Seeker #1104
Answered
by
laurensvalk
ItzBerkPower
asked this question in
Q&A
-
from pybricks.iodevices import PUPDevice
from pybricks.parameters import Port
device = PUPDevice(Port.A)
while True:
values = device.read(5)
if len(values) > 0:
print("Strength", values[0]) #return the signal strength
if len(values) > 1:
print("Direction", values[1]) #return the direction of the ball 0 - 12 This code is meant to be able to read in the IR Ball data from the IR Seeker, but it isn't printing anything to the terminal. |
Beta Was this translation helpful? Give feedback.
Answered by
laurensvalk
Jun 8, 2023
Replies: 1 comment 2 replies
-
We've had a few support tickets for this one (including a team that was in contact with BBS), but unfortunately we don't have this device ourselves. It would be helpful if BBS got in touch with us directly at team@pybricks.com. If you try their customer service, please let them know. Thanks! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It sounds like you might have installed the firmware via https://beta.pybricks.com/ but are using https://code.pybricks.com/ to write code.
If you install the beta firmware, be sure to use https://beta.pybricks.com/ for coding too.