-
Over the past couple weeks I've been writing a simple 3D renderer for the EV3, using Pybricks. Drawing a wireframe model works fine (just have to call To speed up drawing, I want to expose additional functions from the GRX3 library (such as drawing filled and unfilled polygons) on my own fork of pybricks-micropython - but I'm having trouble getting started. So far I have:
After that, I tried to call In digging through the repo, the Image class linked above is the only file I could find that specified which drawing commands were available - so I thought that might be the only thing I had to change. Is there something else I overlooked? (This is my first time modifying/building firmware, so it's likely that I'm missing some details!) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
We will gladly take a PR for this.
You will need to use |
Beta Was this translation helpful? Give feedback.
-
Alternatively, you can copy the newly built Then all you'd need to do is change the shebang path on the first line in your script accordingly, to e.g. I don't remember if it was necessary to make it executable first. |
Beta Was this translation helpful? Give feedback.
-
Thank you both for the quick responses - my triangle function is recognized now and runs great! I was able to get it working by moving The method @laurensvalk suggested (replacing the original firmware at Again, I really appreciate the help! Having more of GRX3 exposed will be a huge step up for my project. |
Beta Was this translation helpful? Give feedback.
We will gladly take a PR for this.
You will need to use
./pybricks-micropython
(or the absolute path), otherwise it uses thePATH
environment variable to findpybricks-micropython
and this does not include the current directory. (You could also install your copy at/usr/local/bin/
instead so that you don't have to do that.)