Closed hanke-cnc closed 1 year ago
The plugin I downloaded here, without any changes, https://github.com/grblHAL/Templates/blob/master/my_plugin/settings/my_plugin.c , and I don't understand static plugin_settings_t my_settings; What is the parameter value of my_settings? I mean how much is he $?
and added my_plugin_init() to board_init
Don't do that, just add _myplugin.c to the Src folder and recompile. It will be automatically added.
What is the parameter value of my_settings?
In the IDE just hover the mouse over Setting_UserDefined_0
(and 1) and you will see the settings number. Or look them up in grbl/settings.h.
If using ioSender the new settings will also show up in the Settings: Grbl tab:
I have not written documentation for how to add different setting types. FYI there are plenty of examples here that should get you started.
and added my_plugin_init() to board_init
Don't do that, just add _myplugin.c to the Src folder and recompile. It will be automatically added.
What is the parameter value of my_settings?
In the IDE just hover the mouse over
Setting_UserDefined_0
(and 1) and you will see the settings number. Or look them up in grbl/settings.h.If using ioSender the new settings will also show up in the Settings: Grbl tab:
I have not written documentation for how to add different setting types. FYI there are plenty of examples here that should get you started.
Great, I see that so I can add a set value for my handwheel speed
The USB virtual serial port can be recognized, but GRBLHAL seems to be dead. If you don’t add my_plugin_init(); in board_init, everything works, but I can’t find the custom settings.