Skip to content

grblHAL/Plugins_misc

Repository files navigation

Assorted small plugins

RGB LED strips

Adds one or two settings, $536 and $537, for setting number of LEDs in NeoPixel/WS2812 LED strips.

Dependencies:

Driver and board support for LED strips.

Configuration:

Add/uncomment #define RGB_LED_ENABLE 1 in my_machine.h.

RGB LED strip control

Adds support for Marlin style M150 command.

M150 [B<intensity>] [I<pixel>] [K] [P<intensity>] [R<intensity>] [S<strip>] [U<intensity>] [W<intensity>]

    B<intensity> - blue component, 0 - 255.
    I<pixel>     - LED index, 0 - 255. Available if number of LEDs in strip is > 1.
    K            - keep unspecified values.
    P<intensity> - brightness, 0 - 255.
    S<strip>     - strip index, 0 or 1. Default is 0.
    R<intensity> - red component, 0 - 255.
    U<intensity> - red component, 0 - 255.

Dependencies:

Driver and board support for LED strips.

Configuration:

Add/uncomment #define RGB_LED_ENABLE in my_machine.h and set/change the define value to 2.

Dependencies:

Driver and board support for LED strips.

Note

If B axis is enabled then the plugin will not be activated.

Bind events to aux output ports

Configuration:

Add/uncomment #define EVENTOUT_ENABLE 1 in my_machine.h .

Depending on the number of free output ports up to four events can be selected. Settings $750+<n> is used to select the event (trigger) to bind to the port selected by setting $760+<n> where <n> is the event number, currently 0 - 3.

Dependencies:

The selected driver/board must provide at least one free auxillary output port.

Credits:

Based on idea from plugin by @Sienci-Labs.

PWM Servo

*** Experimental ***

Adds support for Marlin style M280 command.

M280 [P<index>] [S<position>]

    P<index>    - servo to set or get position for. Default is 0.
    S<position> - set position in degrees, 0 - 180.
                  If omitted the current position is reported: 
                  [Servo <index> position: <position> degrees]

Configuration:

Add/uncomment #define PWM_SERVO_ENABLE 1 in my_machine.h.

Dependencies:

The selected driver/board must provide at least one free auxillary analog output port that is PWM capable.

Credits:

Based on code by @wakass.

BLTouch probe

*** Experimental ***

Adds support for Marlin style M401 and M402 commands.

M401 [H] [R<0|1>] [S<0|1>] - deploy probe

    H      - report high speed mode.
    R<0|1> - currently ignored.
    S<0|1> - S0: disable high speed mode, S1: enable high speed mode.
M402 [R<0|1>] - stow probe

    R<0|1> - currently ignored.

Configuration:

Add/uncomment #define PWM_SERVO_ENABLE 1 and #define BLTOUCH_ENABLE 1 in my_machine.h.

Dependencies:

The selected driver/board must provide at least one free auxillary analog output port that is PWM capable.

Credits:

Based on code by @wakass.


2024-09-04

Releases

No releases published

Packages

No packages published