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

Suggestion: configuration file #72

Open
p3lim opened this issue Mar 23, 2024 · 1 comment
Open

Suggestion: configuration file #72

p3lim opened this issue Mar 23, 2024 · 1 comment

Comments

@p3lim
Copy link

p3lim commented Mar 23, 2024

Instead of hard-coding options, requiring a recompile and "flash" for every change, use the RPI ROM to store a configuration file that the firmware reads on boot (or on a keybind to reload).

Would be extra nice if this could be mounted without interrupting the normal behavior, e.g. we could edit this file using the keyboard/mouse attached to it and then trigger a reload.

I've seen other firmware do things like this with the RP2040, KMK comes to mind.

@hrvach
Copy link
Owner

hrvach commented Mar 23, 2024

This is actually done, there is a configuration file stored in the last flash block, saving border switching details and some other things (order of outputs, which OS is an output connected to etc).

It's not a text config but a struct with some checksum data, etc. I opted out of uploading a traditional config file because implementing usb storage is potentially problematic from a security / data protection standpoint. Some options that currently need a rebuild to change will get keyboard config support.

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

No branches or pull requests

2 participants