-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 support for settings update through config file, switch unified & classic menu through config file & other minor changes #526
Conversation
My screen is TFT35 v 1.2 |
@Acenotass |
custom_label_1:Отключить двигатели with these values my firmware update freezes If you can’t use the UTF encoding in config.ini, then at least you need to be able to use the values from the firmware from Configuration.h |
@Acenotass I tried those also. |
Sorry it turns out I have config.ini saved in ANSI encoding |
So what about UTF encoding support in the config.ini file? |
@Acenotass the config.ini is in UTF encoding. may be your editor is changing the encoding while saving the changes. |
Just checked .. I can confirm that... adding fix... |
A bit confused with this option:
On the TFT screen, option is "Hide terminal ACK". |
@GregSKR why are you geting confused the meaning is in the sentence. |
@Acenotass (and anyone else) I'd recommend installing the EditorConfig plugin. This will keep code tidy and ensure proper file encoding. |
@@ -10,7 +10,7 @@ charset = utf-8 | |||
[{*.c,*.cpp,*.h,Makefile}] | |||
trim_trailing_whitespace = true | |||
insert_final_newline = true | |||
end_of_line = lf | |||
end_of_line = crlf |
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.
Maybe end_of_line
should be removed completely (or at least until native
is supported) since it's not universal across macOS/Linux/Windows.
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.
I agree with 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.
@Acenotass (and anyone else) I'd recommend installing the EditorConfig plugin. This will keep code tidy and ensure proper file encoding.
I'll put in a PR shortly to add *.ini files to the UTF-8 encoding section: Done.
@thisiskeithb It keeps adding a new line to the code if you are typing at the end of the file and stop for 2 seconds. I think this is due to insert_final_newline = true
. So I set those settings in VSCodium's default settings.
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.
Odd. Which OS are you using? I don’t have that issue on macOS or Windows.
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.
Windows
Hello, thank you very much for your work! This PR will not be merged in a short time, because there are too many changes in it. |
To create beautiful themes for the TFT screen, standard color sets are not enough. I propose to make it possible to select any color in config.ini. |
@bigtreetech |
What kind of color coding is in the Colors.h file. I can’t match the icon color with the background color #define BLUE 0x021F. |
@Acenotass yes I will add it. It takes time. |
@guruathwal thank you very much! |
@guruathwal Thanks a lot for your work for the community, I'm using your fork for flashing my TFT35, it's awesome! Sorry to bother you again about 'terminal_ack'... So, if I want to HIDE ack, looks like I have to set the value of terminal_ack to 1 (and not 0!) to activate the hiding option?... |
@GregSKR @guruathwal IMHO, in order not to get confused in the logic of variables, the best thing is to use Boolean values True and False |
I think dropping “Hide” from the menu label would help clear up confusion. 0 should be an off/disabled state. Or what about renaming the label to “Temperature ACK”? |
The logic is simple, True is always 1, and the inverse logic is Hide. It follows that it makes sense to use Boolean values. Hide = True = 1 |
@guruathwal I noticed an bug in displaying files when printing through the motherboard. If the files in list mode is disabled, then the files are still displayed in list mode. |
@Acenotass It is not a bug. It is deliberate because the preview images cannot be loaded from motherboard SD card. So there is no point in showing icons for files in motherboard SD card. |
@guruathwal I see... BTW, how to form a preview image I did not understand. Nowhere is this written clearly. |
@Acenotass this might help you: https://github.com/bigtreetech/BiQU_Tool |
@guruathwal |
@GregSKR thanks for notifying |
c91799c
to
a0d8cf5
Compare
I am interested in updating through a config file, how does it work? any guide? |
@guruathwal |
@Acenotass resetting the settings or reloading the config file should rectify it. |
@Acenotass - what are you asking for with the colors ? Since the colors are in RGB565 color space you could use an online tool. There are several. I use http://www.rinkydinkelectronics.com/calc_rgb565.php |
@roberttco the problem is not with color conversion, but with the impossibility of choosing it, there is no way to choose any color. |
Ahhh I see. That makes Morse sense to me now. Thanks. |
…nges - Add support for updating settings through a config file without need to recompile firmware. - Move lcd colors to selerate file. - Increase firmware version to 25.4 - changeable long text strings are save to spi flash. - long text like custom gcodes and print gcodes are loaded from spi flash only when needed.
author guruathwal <gurmeet.athwal@gmail.com> 1585947271 +0530 committer guruathwal <gurmeet.athwal@gmail.com> 1588082816 +0530 parent e05045a author guruathwal <gurmeet.athwal@gmail.com> 1585947271 +0530 committer guruathwal <gurmeet.athwal@gmail.com> 1588081780 +0530 parent e05045a author guruathwal <gurmeet.athwal@gmail.com> 1585947271 +0530 committer guruathwal <gurmeet.athwal@gmail.com> 1588081144 +0530 Add support for settings update through config file & other minor changes - Add support for updating settings through a config file without need to recompile firmware. - Move lcd colors to selerate file. - Increase firmware version to 25.4 - changeable long text strings are save to spi flash. - long text like custom gcodes and print gcodes are loaded from spi flash only when needed. Update leveling.c Update Settings.c Add dynamic/custom text support to list view custom values & bump software version to 25.4 - Add dynamic/custom text support to list view custom values - Bump software version to 25.4 update precompiled binaries Update readme & add configuration instructions add config instruction images Update config_instructions.md Update config_instructions.md Update config_instructions.md fix color index in config.ini Update .editorconfig update default config files fix issues in config parsing limits & list mode colors not changing Move NumPad to seperate file & fix colors in in numpad update default config files fix option index numbers in configuration.h and match option indexes in config.ini Add Unified menu & classic menu to Config file. Update precompiled binaries and add readme.md to firmware directories. Update README.md Update README.md Update README.md Fix rotate ui bug in if rotation changed through config file add check to count unicode character instead of bytes & add settings array size check on compile update config files Update config.c update binaries update wrong icon in word_unicode.fon for TFT24 & TFT28 fix parameter values not displaying fix wrong count of gcodes when gcode name or gcode is not parsed fix backgroud loop in Main menu in Unified Menu and cleanup fix backgroud loop in Main menu in Unified Menu and cleanup follow up Fix Menu Title not displaying correctly in a List menu after a reminder message is cleared Fix knob led color options index start from 0 remove redefine of STARTUP_KNOB_LED_COLOR already defined in SanityCheck.h Add option to change status screen XYZ background, list view border & button color & minor cleanup - Add option to change Status screen XYZ display background color, list view border & button color. - Remove confustion in show ack setting in config.ini - fix typos in config.ini fix colors display in list view and status screen & colors match names Fix color display in list view and status screen match colors with names fix remider color changing with volume reminder color due to duplicate keywords Fix sanitycheck.h, add leveling edge distance to Configuration.h, fix reminders color display Fix: show emergency parser pop up warning on on first boot Fix build error Fix ST7920 colors not changing Fix build error due to change in defined names. The curious case of ACK - rename gcode menu to 'Terminal' - change ACK label text Update parseACK.c fix bad paste fix wrong tool number while printing Update leveling.c Update Settings.c add config instruction images Update config_instructions.md Update config_instructions.md fix color index in config.ini Update .editorconfig update default config files Move NumPad to seperate file & fix colors in in numpad update default config files fix option index numbers in configuration.h and match option indexes in config.ini Add Unified menu & classic menu to Config file. Update precompiled binaries and add readme.md to firmware directories. update config files Update config.c update binaries update wrong icon in word_unicode.fon for TFT24 & TFT28 fix parameter values not displaying fix wrong count of gcodes when gcode name or gcode is not parsed fix backgroud loop in Main menu in Unified Menu and cleanup fix backgroud loop in Main menu in Unified Menu and cleanup follow up Fix Menu Title not displaying correctly in a List menu after a reminder message is cleared remove redefine of STARTUP_KNOB_LED_COLOR already defined in SanityCheck.h Add option to change status screen XYZ background, list view border & button color & minor cleanup - Add option to change Status screen XYZ display background color, list view border & button color. - Remove confustion in show ack setting in config.ini - fix typos in config.ini Fix: show emergency parser pop up warning on on first boot Fix build error Fix ST7920 colors not changing Fix build error due to change in defined names. The curious case of ACK - rename gcode menu to 'Terminal' - change ACK label text update show ack check Update parseACK.c fix bad paste fix wrong tool number while printing minor bugfix Update Printing.c
…nges - Add support for updating settings through a config file without need to recompile firmware. - Move lcd colors to selerate file. - Increase firmware version to 25.4 - changeable long text strings are save to spi flash. - long text like custom gcodes and print gcodes are loaded from spi flash only when needed.
Improve Cancel Gcode setting Users can now enable/disable Cancel Gcode through the Feature menu. Disabled by default.
author guruathwal <gurmeet.athwal@gmail.com> 1585947271 +0530 committer guruathwal <gurmeet.athwal@gmail.com> 1588082816 +0530 parent e05045a author guruathwal <gurmeet.athwal@gmail.com> 1585947271 +0530 committer guruathwal <gurmeet.athwal@gmail.com> 1588081780 +0530 parent e05045a author guruathwal <gurmeet.athwal@gmail.com> 1585947271 +0530 committer guruathwal <gurmeet.athwal@gmail.com> 1588081144 +0530 Add support for settings update through config file & other minor changes - Add support for updating settings through a config file without need to recompile firmware. - Move lcd colors to selerate file. - Increase firmware version to 25.4 - changeable long text strings are save to spi flash. - long text like custom gcodes and print gcodes are loaded from spi flash only when needed. Update leveling.c Update Settings.c Add dynamic/custom text support to list view custom values & bump software version to 25.4 - Add dynamic/custom text support to list view custom values - Bump software version to 25.4 update precompiled binaries Update readme & add configuration instructions add config instruction images Update config_instructions.md Update config_instructions.md Update config_instructions.md fix color index in config.ini Update .editorconfig update default config files fix issues in config parsing limits & list mode colors not changing Move NumPad to seperate file & fix colors in in numpad update default config files fix option index numbers in configuration.h and match option indexes in config.ini Add Unified menu & classic menu to Config file. Update precompiled binaries and add readme.md to firmware directories. Update README.md Update README.md Update README.md Fix rotate ui bug in if rotation changed through config file add check to count unicode character instead of bytes & add settings array size check on compile update config files Update config.c update binaries update wrong icon in word_unicode.fon for TFT24 & TFT28 fix parameter values not displaying fix wrong count of gcodes when gcode name or gcode is not parsed fix backgroud loop in Main menu in Unified Menu and cleanup fix backgroud loop in Main menu in Unified Menu and cleanup follow up Fix Menu Title not displaying correctly in a List menu after a reminder message is cleared Fix knob led color options index start from 0 remove redefine of STARTUP_KNOB_LED_COLOR already defined in SanityCheck.h Add option to change status screen XYZ background, list view border & button color & minor cleanup - Add option to change Status screen XYZ display background color, list view border & button color. - Remove confustion in show ack setting in config.ini - fix typos in config.ini fix colors display in list view and status screen & colors match names Fix color display in list view and status screen match colors with names fix remider color changing with volume reminder color due to duplicate keywords Fix sanitycheck.h, add leveling edge distance to Configuration.h, fix reminders color display Fix: show emergency parser pop up warning on on first boot Fix build error Fix ST7920 colors not changing Fix build error due to change in defined names. The curious case of ACK - rename gcode menu to 'Terminal' - change ACK label text Update parseACK.c fix bad paste fix wrong tool number while printing Update leveling.c Update Settings.c add config instruction images Update config_instructions.md Update config_instructions.md fix color index in config.ini Update .editorconfig update default config files Move NumPad to seperate file & fix colors in in numpad update default config files fix option index numbers in configuration.h and match option indexes in config.ini Add Unified menu & classic menu to Config file. Update precompiled binaries and add readme.md to firmware directories. update config files Update config.c update binaries update wrong icon in word_unicode.fon for TFT24 & TFT28 fix parameter values not displaying fix wrong count of gcodes when gcode name or gcode is not parsed fix backgroud loop in Main menu in Unified Menu and cleanup fix backgroud loop in Main menu in Unified Menu and cleanup follow up Fix Menu Title not displaying correctly in a List menu after a reminder message is cleared remove redefine of STARTUP_KNOB_LED_COLOR already defined in SanityCheck.h Add option to change status screen XYZ background, list view border & button color & minor cleanup - Add option to change Status screen XYZ display background color, list view border & button color. - Remove confustion in show ack setting in config.ini - fix typos in config.ini Fix: show emergency parser pop up warning on on first boot Fix build error Fix ST7920 colors not changing Fix build error due to change in defined names. The curious case of ACK - rename gcode menu to 'Terminal' - change ACK label text update show ack check Update parseACK.c fix bad paste fix wrong tool number while printing minor bugfix Update Printing.c
author guruathwal <gurmeet.athwal@gmail.com> 1585947271 +0530 committer guruathwal <gurmeet.athwal@gmail.com> 1588082816 +0530 parent e05045a author guruathwal <gurmeet.athwal@gmail.com> 1585947271 +0530 committer guruathwal <gurmeet.athwal@gmail.com> 1588081780 +0530 parent e05045a author guruathwal <gurmeet.athwal@gmail.com> 1585947271 +0530 committer guruathwal <gurmeet.athwal@gmail.com> 1588081144 +0530 Add support for settings update through config file & other minor changes - Add support for updating settings through a config file without need to recompile firmware. - Move lcd colors to selerate file. - Increase firmware version to 25.4 - changeable long text strings are save to spi flash. - long text like custom gcodes and print gcodes are loaded from spi flash only when needed. Update leveling.c Update Settings.c Add dynamic/custom text support to list view custom values & bump software version to 25.4 - Add dynamic/custom text support to list view custom values - Bump software version to 25.4 update precompiled binaries Update readme & add configuration instructions add config instruction images Update config_instructions.md Update config_instructions.md Update config_instructions.md fix color index in config.ini Update .editorconfig update default config files fix issues in config parsing limits & list mode colors not changing Move NumPad to seperate file & fix colors in in numpad update default config files fix option index numbers in configuration.h and match option indexes in config.ini Add Unified menu & classic menu to Config file. Update precompiled binaries and add readme.md to firmware directories. Update README.md Update README.md Update README.md Fix rotate ui bug in if rotation changed through config file add check to count unicode character instead of bytes & add settings array size check on compile update config files Update config.c update binaries update wrong icon in word_unicode.fon for TFT24 & TFT28 fix parameter values not displaying fix wrong count of gcodes when gcode name or gcode is not parsed fix backgroud loop in Main menu in Unified Menu and cleanup fix backgroud loop in Main menu in Unified Menu and cleanup follow up Fix Menu Title not displaying correctly in a List menu after a reminder message is cleared Fix knob led color options index start from 0 remove redefine of STARTUP_KNOB_LED_COLOR already defined in SanityCheck.h Add option to change status screen XYZ background, list view border & button color & minor cleanup - Add option to change Status screen XYZ display background color, list view border & button color. - Remove confustion in show ack setting in config.ini - fix typos in config.ini fix colors display in list view and status screen & colors match names Fix color display in list view and status screen match colors with names fix remider color changing with volume reminder color due to duplicate keywords Fix sanitycheck.h, add leveling edge distance to Configuration.h, fix reminders color display Fix: show emergency parser pop up warning on on first boot Fix build error Fix ST7920 colors not changing Fix build error due to change in defined names. The curious case of ACK - rename gcode menu to 'Terminal' - change ACK label text Update parseACK.c fix bad paste fix wrong tool number while printing Update leveling.c Update Settings.c add config instruction images Update config_instructions.md Update config_instructions.md fix color index in config.ini Update .editorconfig update default config files Move NumPad to seperate file & fix colors in in numpad update default config files fix option index numbers in configuration.h and match option indexes in config.ini Add Unified menu & classic menu to Config file. Update precompiled binaries and add readme.md to firmware directories. update config files Update config.c update binaries update wrong icon in word_unicode.fon for TFT24 & TFT28 fix parameter values not displaying fix wrong count of gcodes when gcode name or gcode is not parsed fix backgroud loop in Main menu in Unified Menu and cleanup fix backgroud loop in Main menu in Unified Menu and cleanup follow up Fix Menu Title not displaying correctly in a List menu after a reminder message is cleared remove redefine of STARTUP_KNOB_LED_COLOR already defined in SanityCheck.h Add option to change status screen XYZ background, list view border & button color & minor cleanup - Add option to change Status screen XYZ display background color, list view border & button color. - Remove confustion in show ack setting in config.ini - fix typos in config.ini Fix: show emergency parser pop up warning on on first boot Fix build error Fix ST7920 colors not changing Fix build error due to change in defined names. The curious case of ACK - rename gcode menu to 'Terminal' - change ACK label text update show ack check Update parseACK.c fix bad paste fix wrong tool number while printing minor bugfix Update Printing.c
@bigtreetech When do you plan to merge this? |
…nified & classic menu through config file & other minor changes (bigtreetech#526)" This reverts commit 522911e.
Just for the beauty of the code: 😉
|
… classic menu through config file & other minor changes (bigtreetech#526) - Add support for updating settings through a config file without need to recompile firmware. - Move lcd colors to selerate file. - Increase firmware version to 25.4 - changeable long text strings are save to spi flash. - long text like custom gcodes and print gcodes are loaded from spi flash only when needed. - Move NumPad to seperate file & fix colors in in numpad
(Needs updating icons & Reset settings after firmware update )