What is wrong with this it is saying that controller_1 is not a thing yet I have it in port selection.
Ok that changed but now it is saying buttonL1 is an error
It might be missing the point, but you need a colon at the end of each
def line. (And indented
CONVEYER lines). Unless that works?
What sort of error is it giving?
Yeah… I believe you need a colon at the end of each function line.
The only error is on the buttonL1 code
What is weirder is that in the next line buttonL1 is not an error
ok, too much misinformation.
pressed needs a callback function just like C++
brain.screen.print_at("pressed", x=10, y=40 )
brain.screen.print_at("release", x=10, y=40 )
Not too sure. Can you send a screenshot of more of the window in case it’s something else. (By the way,
: at the end of the line, you have a
I put colons in and it did not help
Do what jpearman told you to do.
It didn’t help the current problem, (which @jpearman has a solution for), but it will solve later problems.
Still says buttonL1 is an invalid syntax
You didn’t copy the code.
you cannot do this (assuming controller_1 is defined as a controller)
It is defined as controller one. The only error is that it says buttonL1 is not a thing
yes, because you keep putting “def” in front of it which is invalid Python
I took it out and the error is off of L1 but it is on CONVEYOR
That happened after I deleted the colons which the error was on after L1 but before conveyer
based on your screenshot, you need something like this.
Thank you so much. This works perfectly