Skip to content
Discussion options

You must be logged in to vote

So: progress!

You might add (more or less copied from you original source I had a typo: xbox.button should be xbox.buttons)

        if Button.A in xbox.buttons.pressed():
            light.on(100)
        if Button.Y in xbox.buttons.pressed():
            light.off()  )

Keep the indentation in mind.

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@BertLindeman
Comment options

Comment options

You must be logged in to vote
9 replies
@vasilegh
Comment options

@BertLindeman
Comment options

@vasilegh
Comment options

@BertLindeman
Comment options

Answer selected by vasilegh
@vasilegh
Comment options

@BertLindeman
Comment options

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