Skip to content

Correct compiler error (unused static) if no I2C ports defined by port #3504

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

Closed
wants to merge 1 commit into from

Conversation

doc-hex
Copy link
Contributor

@doc-hex doc-hex commented Dec 20, 2017

Not sure if this patch is a good idea, but I needed to be able to build on my board with no I2C bus.

I would prefer to remove all the I2C code using a single define, but there wasn't such a define ready to go, and that change would impact more files.

@dpgeorge
Copy link
Member

Thanks for the PR. I took your hint about removing all I2C code and applied it in c73360b. So now if a board doesn't define any I2C ports then none of the hardware I2C code is included, and the pyb.I2C class is removed (since it can no longer function).

@dpgeorge dpgeorge closed this Dec 22, 2017
tannewt added a commit to tannewt/circuitpython that referenced this pull request Oct 13, 2020
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request Feb 9, 2021
The time.sleep() and time.monotonic() functions break the timer
interrupt on which PewPew10 display relies, so we can't use them
anymore. Instead I'm adding a time-keeping function to the display
code itself, which then can be used in pew.tick() internally.
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request Feb 9, 2021
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.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy