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

Better support for SPI-bus sharing. #460

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 13, 2018

  1. Better support for SPI-bus sharing.

    ILI9341_sTM uses SPI.beginTransaction() to switch between "fast" and "safe" speeds,
    internally. However, it does not initialize the speed for every drawing operation
    (for performance reasons, I presume), but rather only before and after operations
    requiring the "safe" setting.
    
    This strategy breaks, when the SPI bus is shared with another device (such as an
    XPT2046 touchpad driver on the same display, for instance). To handle this case, this
    patch exposes the appropriate beingTransaction() call in the API, for the user to call
    when switching between devices (and endTransaction() for good style).
    tfry-git committed Mar 13, 2018
    Configuration menu
    Copy the full SHA
    ae63d71 View commit details
    Browse the repository at this point in the history