Closed
Description
We are considering adding support for this device. The proposed API is published here. Please let us know what you think!
In essence, you would initialize and use it just like most sensors. Pairing happens in your script; no manual steps required. Specifying the bluetooth address is optional.
from pybricks.pupdevices import Remote
from pybricks.parameters import Button, Color
remote = Remote()
while True:
if Button.LEFT_UP in remote.buttons.pressed():
remote.light.on(Color.RED)
else:
remote.light.off()
Does this meet your use case? Are there other features you would like to see?
As always, upvoting this post (:+1:) will help us prioritize the features you want most, so spread the word!