Replies: 2 comments 7 replies
-
|
Pybricks does not currently support direct control of uart signals. See #220. If we can find enough users to rally around the cause, maybe it will happen some day. If everyone who purchased custom hardware would sponsor Pybricks by the same amount, that would be even better. 😄 |
Beta Was this translation helpful? Give feedback.
-
|
@laurensvalk We intend to create a facial recognition project using the Huskylens AI vision sensor and Spike Prime. However, we have encountered an issue with the firmware and LEGO Education Spike software of the Spike Prime controller, as they have been updated to version 3.0 and no longer support the "Pybricks" library (which was integrated into the version 2.0 firmware). This means that Spike Prime cannot drive the external vision sensor, Huskylens. Have you come across this problem? Is there a plan to update and upgrade the Pybricks library to establish compatibility between Spike Prime version 3.0 and Huskylens? Alternatively, are there any other solutions available? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
With the transition from SPIKE App v2 to SPIKE App v3 a lot of the functionality previously available in the Python Editor has been removed.
I’m trying to convert a few projects that used to work in SPIKE App v2 to Pybricks. Obviously, I’m having trouble. I’m close to my current limits of understanding and would love some help.
In this case I’m trying to use Daniele Benedettelli’s & Anton’s Mindstorms really cool projects getting the Huskylens camera to work with a SPIKE Prime, to now work on Pybricks.
The major issues I can identify, is that previously there was a function in the Port Class that allowed you to set the mode (duplex), baud rate and control pwm on the SPIKE Hub Ports.
Now what I get is errors such as: "AttributeError: ‘Port’ object has no attribute ‘mode’"
The answers appear to be in here, but at this stage coding at that level is still beyond me.
Any suggestions?
Briefly, the most recent errors I’m experiencing start happening at line 76, 78 & 80.
self.uart.mode(1)
self.uart.baud(baudrate)
self.uart.pwm(100)
See in context below + I’ve added a partially transitioned Beneddettelli file.
PyBricks_HuskyLens.zip
Beta Was this translation helpful? Give feedback.
All reactions