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

feature request for commander -"have a make default" button #4

Open
mattvenn opened this issue Mar 21, 2024 · 4 comments
Open

feature request for commander -"have a make default" button #4

mattvenn opened this issue Mar 21, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@mattvenn
Copy link

so after testing a design could easily be made default. a config file should be created and saved on the rp2040

@urish urish self-assigned this Mar 21, 2024
@urish urish added the enhancement New feature or request label Mar 21, 2024
urish added a commit that referenced this issue Mar 21, 2024
@urish
Copy link
Member

urish commented Mar 21, 2024

done - we now have a new "Persist config to board" button:

image

The implementation is pretty dumb - it overwrites the existing config.ini with a bare minimal one:

config_content = f"[DEFAULT]\nproject={default_project}\n[{default_project}]\nclock_frequency={clock}\n"

couldn't fully test it since I don't have a tt03p5 demo board, so please test it and report back

@mattvenn
Copy link
Author

is it dependent on some existing fw on the board?

@urish
Copy link
Member

urish commented Mar 21, 2024

yes, https://github.com/TinyTapeout/tt-micropython-firmware

all it does is writing a config.ini file - it's up to the existing firmware to load this file and do its magic

@mattvenn
Copy link
Author

not working, will check the config and report back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants