Skip to content

Refactoring to save memory #6

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

Merged
merged 6 commits into from
Sep 16, 2018
Merged

Refactoring to save memory #6

merged 6 commits into from
Sep 16, 2018

Conversation

caternuson
Copy link
Contributor

Moved the individual subclasses into their own modules and put in subfolder.

The examples have not been updated for this layout

Old usage:

import adafruit_pn532

New usage (i2c):

from adafruit_pn532.i2c import PN532_I2C

@caternuson caternuson requested a review from ladyada August 28, 2018 19:41
@ladyada
Copy link
Member

ladyada commented Aug 28, 2018

looks good to me, does that help with mem?

@caternuson
Copy link
Contributor Author

Seems to. I added more info in issue thread. #3

@caternuson
Copy link
Contributor Author

OK, now it's just failing on the examples. I'll update those once this has been tested a little more.

@tannewt
Copy link
Member

tannewt commented Sep 13, 2018

@caternuson This ready to go in now?

@caternuson
Copy link
Contributor Author

I tested with Trinket M0 and Metro M4. I'm good, but I think @ladyada was going to do some more testing:
#3 (comment)

@ladyada
Copy link
Member

ladyada commented Sep 16, 2018

thanks for waitin' i tested this on M4 with all modes with success! :)

@ladyada ladyada merged commit 98c47df into adafruit:master Sep 16, 2018
tannewt pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Sep 17, 2018
Updating https://github.com/adafruit/Adafruit_CircuitPython_PN532 to 2.0.0 from 1.0.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_PN532#6 from caternuson/iss3_refactor
  > Merge pull request adafruit/Adafruit_CircuitPython_PN532#5 from caternuson/iss4
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.

3 participants