grblHAL / core

grblHAL core code and master Wiki
Other
326 stars 85 forks source link

I downloaded my_plugin.c, and added my_plugin_init() to board_init in st_morpho.c, grblhal seems to be dead, there will be no response #260

Closed hanke-cnc closed 1 year ago

hanke-cnc commented 1 year ago

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.

hanke-cnc commented 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 $?

terjeio commented 1 year ago

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:

image

I have not written documentation for how to add different setting types. FYI there are plenty of examples here that should get you started.

hanke-cnc commented 1 year ago

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:

image

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