stancecoke wrote: ↑
Jun 23, 2018 3:37 am
This is exactly the job of the Java-tool, just with a graphic interface. Perhaps we should add the possibility to write the settings to a file and read it in again, to avoid to edit all the individual settings again, if you start the tool...
Well, I had in mind something different. The formatted text file would be the source of truth. Editing it would be the normal way to do configuration. The config.h generator script would merge the items from the file with a template config.h to create the actual header file. Tools that could read and write this file would be free to have special rules to do error checking, automation, layout etc, but should also be able to handle new keys sensibly by default. That is, it should not require a change to the generator script or the GUI to add an item for testing etc. This might make it easier for new people to try things.
I have some other ideas too. Of course in open source projects ideas are free and it is always easiest to ask the project maintainers to do the work
. I have just received a few STM8S Discovery boards with ST-Link2 and some minimal STM8 breakout boards and have a few KT controllers on the way as well as displays LED 3 and LED 5. Should arrive in a couple weeks. Once I have that all in hand I'll see if I can help out a bit.
One more idea: since the LCD display talks over a serial link, move some/all of the configuration to variables and have a simple protocol to read/write the config via the LCD cable instead of re-flashing the device. To keep the onboard code simple the config data would still be parsed and validated on the host laptop or whatever.