Closed giacomoocasarin closed 4 years ago
@Jacky3103 you are using pybricks-micropython
which is not the same as ev3dev-lang-python.
In other words, the first line should be
#!/usr/bin/env micropython
@Jacky3103 Were you able to solve your issue using the above change?
First of all I want to sorry for my bad English.
I'm trying to use the ev3dev2 library and Visual Studio Code to add python code to my ev3 robot. My problem is that when I try to use the function 'animate_stop' (or 'animate_flash', 'reset', and some others) from the class 'Leds' I get an error saying that the called function isn't an attribute of the object 'Leds' but when I opened the 'led.py' file (which contains the 'Leds' class) I found all the functions that I tried to call.
I have installed ev3dev2 from github and the official SD card image file for the ev3 from its site.
The code:
The error: