Skip to content

How to set speed depending on button pressed #783

Answered by dlech
rcodecom asked this question in Q&A
Discussion options

You must be logged in to vote

Something like this?

    if Button.LEFT in pressed:
        drive_speed = top_speed // 2
    if Button.RIGHT in pressed:
        drive_speed = top_speed

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@rcodecom
Comment options

@rcodecom
Comment options

@laurensvalk
Comment options

@rcodecom
Comment options

@laurensvalk
Comment options

Answer selected by rcodecom
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