Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up I2C by not setting the MCP23008 bits one at a time. #80

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

dhalbert
Copy link
Contributor

@dhalbert dhalbert commented Dec 18, 2024

A user in discord was using an MCP2221 and this library was unbearably slow. I hope this is somewhat better. I gave them a .zip to test.

@dhalbert
Copy link
Contributor Author

User has tested this with an MCP2221A and it worked and sped things up nicely.

@dhalbert dhalbert marked this pull request as ready for review December 18, 2024 18:36
@dhalbert dhalbert requested a review from a team December 18, 2024 18:36
@dhalbert dhalbert merged commit c7bd36e into adafruit:main Dec 18, 2024
1 check passed
@dhalbert dhalbert deleted the faster-I2C branch December 18, 2024 18:53
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 19, 2024
Updating https://github.com/adafruit/Adafruit_CircuitPython_CharLCD to 3.5.0 from 3.4.12:
  > Merge pull request adafruit/Adafruit_CircuitPython_CharLCD#80 from dhalbert/faster-I2C

Updating https://github.com/adafruit/Adafruit_CircuitPython_LED_Animation to 2.10.1 from 2.10.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_LED_Animation#122 from FoamyGuy/rainbowcommet_256_length_fix

Updating https://github.com/adafruit/Adafruit_CircuitPython_Wiz to 1.0.1 from 1.0.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_Wiz#1 from FoamyGuy/fix_typing_import

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Added the following libraries: Adafruit_CircuitPython_Wiz

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Message draw slow compared to legacy library (Adafruit_CharLCDPlate)
2 participants