Skip to content
Discussion options

You must be logged in to vote

u-oh, sorry, Thanks Friedrich.

Retry:

issue_2742_hub1:

from pybricks.hubs import PrimeHub
from pybricks.messaging import BLERadio
from pybricks.parameters import Color, Port
from pybricks.pupdevices import Motor
from pybricks.tools import wait

hub = PrimeHub()
radio = BLERadio(broadcast_channel=8)

while True:
    radio.broadcast("claw_up")
    wait(1000)
    radio.broadcast("claw_down")
    wait(1000)

issue_2742_hub2:

from pybricks.hubs import PrimeHub
from pybricks.messaging import BLERadio
from pybricks.parameters import Color, Port
from pybricks.pupdevices import Motor
from pybricks.tools import wait, StopWatch

hub = PrimeHub()
radio = BLERadio(observe_channels=[8])
claw = Motor(Port.D

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@leeehthy
Comment options

@BertLindeman
Comment options

@Sirus-7
Comment options

@BertLindeman
Comment options

Answer selected by leeehthy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants