Replies: 1 comment
-
It's so hard to reproduce the problem on my side. I'd appreciate it if you could simplify the code so that I can reproduce the I2C problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to create a driver for the Waveshare motor shield for Pico, which is based on the PCA9685 for PWM. Waveshare only ever gives out Python demo code rather than, y'know, useful documentation, so I've spent all day converting their MicroPython code into Kaluma code.
I've finally got it all outputting the correct stuff to the console, but it just doesn't do anything. It doesn't fail, emits no errors, just...nothing. If I reflash the board with the MicroPython interpreter and run their demo code, it works fine.
Does the i2c stuff work in Kaluma? If so, what could I be doing wrong? The MicroPython and Kaluma implementations of i2c have different parameters, so I'm not sure I'm doing this correctly.
My code:
Everything looks right, nothing happens. What obvious stupid thing am I missing here?
If I can get this working I'll improve it a bit and publish it as an npm, because I think a lot of folks use these shields. I just need to get it working! 😭
Beta Was this translation helpful? Give feedback.
All reactions