• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
Artillery x4 gantry light ON/OFF 3D Printer File Image 1
Artillery x4 gantry light ON/OFF 3D Printer File Thumbnail 1

Artillery x4 gantry light ON/OFF

iw9hlv avatariw9hlv

May 12, 2026

thingiverse-icon
DescriptionCommentsTags

Description

an successfully attempt to add the direct command as macro or gcode token

#####################################################################

CONTROLLO LUCE BARRA SUPERIORE

#####################################################################

[gcode_shell_command GANTRY_ON]
command: sh -c 'echo 1 > /sys/class/gpio/gpio79/value'
timeout: 2

[gcode_shell_command GANTRY_OFF]
command: sh -c 'echo 0 > /sys/class/gpio/gpio79/value'
timeout: 2

[gcode_macro LUCE]
description: Accende o spegne la barra LED tramite GPIO79
variable_stato: 0
gcode:
{% if printer["gcode_macro LUCE"].stato == 0 %}
RUN_SHELL_COMMAND CMD=GANTRY_ON
SET_GCODE_VARIABLE MACRO=LUCE VARIABLE=stato VALUE=1
{% else %}
RUN_SHELL_COMMAND CMD=GANTRY_OFF
SET_GCODE_VARIABLE MACRO=LUCE VARIABLE=stato VALUE=0
{% endif %}

the 3d file is only to perform the publish

License:

Creative Commons - Attribution - Share Alike

Related Models

1-100 Tanks and Vehicles preview image

1-100 Tanks and Vehicles

m_bergman profile image

m_bergman

11,078

Lead Screw Cleaning Tool preview image

Lead Screw Cleaning Tool

Haix3D profile image

Haix3D

1,806

Mechanical Artillery Cannon gun moving turret preview image

Mechanical Artillery Cannon gun moving turret

Manish profile image

Manish

6,257

The Heist - Puzzle Box preview image

The Heist - Puzzle Box

LeisureLuke profile image

LeisureLuke

3,908

Calibration Bro ( CaliFlower Calilantern Calibration cross alternative) - Calibration shape + Calculator - Klipper & Marlin preview image

Calibration Bro ( CaliFlower Calilantern Calibration cross alternative) - Calibration shape + Calculator - Klipper & Marlin

Citywrecker profile image

Citywrecker

M109A7 Paladin Self-Propelled Howitzer preview image

M109A7 Paladin Self-Propelled Howitzer

Sgt_Reckless profile image

Sgt_Reckless

3,657

ATLAS - The universal strong spool holder preview image

ATLAS - The universal strong spool holder

WaikikiProd profile image

WaikikiProd

3,121

Artillery Sidewinder X2 Mods preview image

Artillery Sidewinder X2 Mods

Radiotbo profile image

Radiotbo

206

658