-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add MixGo CE board #6383
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
Add MixGo CE board #6383
Conversation
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.
Why are you including the library as a frozen?
USB_VID = 0x239A | ||
USB_PID = 0x80A8 |
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.
You'll need your own USB VID/PID combination. Espressif usually gives them out here: https://github.com/espressif/usb-pids
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.
Thanks for the support provided by circuitpython, because some libraries are not in Rozen, many new libraries have been added, and some customized modifications have been made to adafruit library
@dahanzimin Are you still awaiting the USB PID from Espressif, or is the one in the commit what you got? |
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.
Thanks for the update on the USB PID.
Two comments about your custom library:
-
The usual way to do this is to keep the library in a separate repo, and add it as a submodule. This will allow you to maintain the library separately, and not depend on the
circuitpython
repo for source control. Also it reduces the size ofcircuitpython
and minimizes the custom code in it. -
Consider whether you need to freeze the library. The reason we freeze libraries into certain firmware images is only to save RAM space when importing the libraries. It is not purposely to make using the board more convenient, though that is an accidental effect. Circuit Playground Express (SAMD21, with only 32kB of RAM) has several frozen libraries for the RAM space reason. But Circuit Playground Bluefruit (nrf52840, 256kB RAM) has none. ESP32-S2 WROOM has 320kB RAM, so you are not under extremem RAM size pressure.
The disadvantage of freezing libraries is that updates require building new firmware. If you keep the libraries separate, then your users will not have to upgrade firmware merely to update the frozen libraries. Of course, they can always override the frozen libraries by placing new versions before .frozen
in sys.path
.
Given the size of your custom library, it is probably going to have bug fixes and improvements going forward.
Note also the pre-commit failures here: https://github.com/adafruit/circuitpython/runs/6398538029?check_suite_focus=true. For some files, there is simply extraneous whitespace or a missing newline at the end of the file. For the Python files, they may be failing |
Thank you very much for your help. We use this board to promote the programming education of circuit Python in China, and use the graphical programming software mixly in primary and middle school students. They often don't want complex lib operation |
Sorry, I will pay attention to this detail later. Thank you for your answers and help |
Here is some info about using |
@dhalbert Thank you for your help. Now all checks have passed. What else do I need to do for this merger? |
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.
This looks good; thank you for making the submodule.
One question before merging: why is the sdkconfig
empty? See the others in boards/*/sdkconfig
. Some just specify CONFIG_LWIP_LOCAL_HOSTNAME
; others have more settings.
@dahanzimin is it ready for review again? |
OK, thank you again. As always, I will promote circuitpython in another region. The board program has been added and can be reviewed again. Thank you |
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.
Looks good to me! Thanks for addressing our requests. I see that adafruit/circuitpython-org#946 for the Mixgo CE board. But are there now two boards, or are they different modes of the same board? Since there are two builds, I think you will want another entry in circuitpython.org.
Yes, the same board has different modes (considering that many computers cannot read the drive letter when programming), in circuit python org. Need two web pages to support it? Submit another (mixgo_ ce_ serial) page later. |
Yes, if there are two builds, you will need another page for the other download. |
@dahanzimin - the merge documentation build failed, I believe because the frozen library was in the board directory rather than in |
To test this before pushing the new PR, go to the top level and do |
@dahanzimin I am fixing this in #6420. |
Thank you. I'm already repairing it dahanzimin/circuitpython/commit/,Actions are in progress |
Thank circuitpython for adding a new board to circuitpython , I hope it can pass