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

No more upy #41

Merged
merged 27 commits into from
Jun 16, 2022
Merged

No more upy #41

merged 27 commits into from
Jun 16, 2022

Conversation

2bndy5
Copy link
Member

@2bndy5 2bndy5 commented Jun 14, 2022

This revokes the experimental support for micropython. Going forward, it'd be better to rely on blinka's progress toward micropython support (adafruit/Adafruit_Blinka#480) which is currently hindered for the same reason I'm revoking it here - the utime lib.

It also fixes #40 by reverting all use of f-strings back to str.format().

Other various changes include:

  • Complete type hinting. I'm worried this might break compatibility with much older versions of CircuitPython, but v6+ is highly recommended for execution speeds (v7+ is better with mpy compression).
  • RF24 class uses allocated _in and _out buffers (instance attributes) for SPI transactions. This is based on some "pro-tips" about using micropython.
  • various doc updates.
  • improved network example to allow receiving while idling during emit()
  • improve setup.py for MacOS installs
  • allow saving/loading DHCP as a binary file. This should help people to migrate existing networks that use the C++ RF24Mesh library.

Copy link
Member Author

@2bndy5 2bndy5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found punctuation errors (yet again)

circuitpython_nrf24l01/fake_ble.py Outdated Show resolved Hide resolved
circuitpython_nrf24l01/network/mixins.py Outdated Show resolved Hide resolved
circuitpython_nrf24l01/rf24_mesh.py Outdated Show resolved Hide resolved
circuitpython_nrf24l01/rf24_mesh.py Outdated Show resolved Hide resolved
docs/network_docs/mesh_api.rst Outdated Show resolved Hide resolved
@2bndy5 2bndy5 merged commit 9ce1c68 into master Jun 16, 2022
@2bndy5 2bndy5 deleted the no-more-upy branch June 16, 2022 09:14
adafruit-adabot added a commit to adafruit/CircuitPython_Community_Bundle that referenced this pull request Jun 17, 2022
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.

CircuitPython throws a syntax error on line 428 of rf24.py
1 participant