Closed erichiggins closed 1 year ago
@caternuson Thank you! Would you like me to create a PR to throw a warning? Are the docs maintained in this repo as well?
i believe it used to throw an exception but some libraries don't catch the exception - so perhaps a print statement would be more useful
Seems like that should be in the docstring too. Same with the phony pins in busio. Would have saved me some time troubleshooting if I knew the pins I kept switching around were bogus.
For all microcontrollers supported by this project, there are lines commented out that state that the I2C frequency cannot be set in Python and is therefore ignored. because these print statements are commented out, the end user (me) has no idea why the API parameter isn't working. https://github.com/adafruit/Adafruit_Blinka/blob/main/src/adafruit_blinka/microcontroller/generic_linux/i2c.py#L23-L24
I'm using a Raspberry Pi Zero W with the Adafruit motor control bonnet to control a stepper motor which is turning slower than I like. The Adafruit MotorKit documentation suggests updating the frequency to get more speed. https://docs.circuitpython.org/projects/motorkit/en/latest/api.html#adafruit_motorkit.MotorKit
I've already changed the
config.txt
setting to update the I2C speed from 100khz to 400khz, but my understanding is that the code also needs to use it. I've confirmed that it's now 400khz. https://learn.adafruit.com/raspberry-pi-i2c-clock-stretching-fixes/change-the-clock-speedThree questions: