-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Updated UM FeatherS2 boards #3463
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
Conversation
Why are you including .py files in the board directory? If you are trying to ship with a demo that uses it, then the files should live on the FAT filesystem along with the example code.py. Generally, frozen modules should only be used to save RAM on constrained devices like the SAMD21. The ESP32-S2 doesn't have that constraint and really shouldn't have frozen modules. Frozen code is hard to understand because it isn't on the drive. It's typically older code and it's impossible for the user to update. |
Because I think it's confusing for folks having just on the FS when they might not understand why it's there, when on "constrained devices" they don't have to have it there to use their Dostar. Seems inconsistent, but I'm happy to unfreeze and put it on the FS if that's what you prefer. I did speak to you about this a while ago when I was asking you how to freeze modules and you asked me why back then ;) EDIT: I already put my feathers2.py helper in the FS anyway, so I can just put the Dotstar lib with that. Is it good practice to put them in the lib folder? or just in the root? EDIT2: Oh, dan, didn't realise I left a bunch of other .py folks in there, sorry. Cleaning up now and will re-push. |
@tannewt Please let me know if you are ok with what I have now. I really want it in for beta 1 :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup! This looks good.
You'll need to add the prerelease board name to the github workflow to get the CI to pass: https://github.com/adafruit/circuitpython/pull/3463/checks?check_run_id=1162679057 and adjust the line endings for these two files: https://github.com/adafruit/circuitpython/pull/3463/checks?check_run_id=1162679034 (Exactly one line at the end.)
I prefer having it on the FS so folks know they can update it.
I know but this time it looks like I can convince you. :-P
I'd leave the feathers2.py helper outside of lib because it is board specific but put the rest in lib for clarity. That way the top level only has feathers2.py and code.py. |
Ok, sounds good! |
@tannewt I fixed the last lines on the 2 .mk files, but I have no idea how to do...
I've never used (or even looked at) git workflows before, sorry. Git noob here! |
Here is a better link: https://github.com/adafruit/circuitpython/pull/3463/checks?check_run_id=1175885989#step:22:7 You need to add the new board name here: https://github.com/adafruit/circuitpython/blob/main/.github/workflows/build.yml#L423 |
Ok, I hope I did it correctly! |
@UnexpectedMaker You'll want to make the change on this PR's branch. I closed the other PR. |
Done - I think! |
@tannewt Ok, 3rd times a charm? It didn't like me doing it from my other Mac for some reason. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Failing test was a network error. Unrelated to this PR. |
Updated board files for FeatherS2 & FeatherS2 Prerelease