Error value unsubscriptable

Screenshot 2025-03-21 9.12.45 PM
this is when I type in controller_1.buttonUp.pressed[motor_1.spin(REVERSE)]

See example here

1 Like

This is your issue here. .pressed() can only call a function with no parameter. (it also uses () not [] ) I would call a function that has motor_1.spin(REVERSE) in it instead of what you have right now.