Skip to content

Commit

Permalink
test-case, Readme, Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeanon authored and rogerlz committed Sep 17, 2024
1 parent 91e0fdf commit b933662
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ See the [Danger Features document](https://dangerklipper.io/Danger_Features.html

- [core: non-critical-mcus](https://github.com/DangerKlippers/danger-klipper/pull/339)

- [core: action_log](https://github.com/DangerKlippers/danger-klipper/pull/367)

If you're feeling adventurous, take a peek at the extra features in the bleeding-edge-v2 branch [feature documentation](docs/Bleeding_Edge.md)
and [feature configuration reference](docs/Config_Reference_Bleeding_Edge.md):

Expand Down
1 change: 1 addition & 0 deletions docs/Command_Templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ Available "action" commands:
- `action_respond_info(msg)`: Write the given `msg` to the
/tmp/printer pseudo-terminal. Each line of `msg` will be sent with a
"// " prefix.
- `action_log(msg)`: Write the given msg to the klippy.log
- `action_raise_error(msg)`: Abort the current macro (and any calling
macros) and write the given `msg` to the /tmp/printer
pseudo-terminal. The first line of `msg` will be sent with a "!! "
Expand Down
81 changes: 81 additions & 0 deletions test/klippy/action_log.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
[stepper_x]
step_pin: PF0
dir_pin: PF1
enable_pin: !PD7
microsteps: 16
rotation_distance: 40
endstop_pin: ^PE5
position_endstop: 0
position_max: 200
homing_speed: 50

[stepper_y]
step_pin: PF6
dir_pin: !PF7
enable_pin: !PF2
microsteps: 16
rotation_distance: 40
endstop_pin: ^PJ1
position_endstop: 0
position_max: 200
homing_speed: 50

[stepper_z]
step_pin: PL3
dir_pin: PL1
enable_pin: !PK0
microsteps: 16
rotation_distance: 8
endstop_pin: ^PD3
position_endstop: 0.5
position_max: 200

[extruder]
step_pin: PA4
dir_pin: PA6
enable_pin: !PA2
microsteps: 16
rotation_distance: 33.5
nozzle_diameter: 0.500
filament_diameter: 3.500
heater_pin: PB4
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PK5
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 210

[temperature_fan my_temp_fan]
pin: PB5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PK6
target_temp: 65.0
control: curve
points:
50.0, 0.0
55.0, 0.5
60.0, 1.0
smooth_readings: 100
cooling_hysteresis: 5.0
heating_hysteresis: 0.0
min_temp: 0
max_temp: 200
min_speed: 0.0
max_speed: 1.0

[mcu]
serial: /dev/ttyACM0

[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100

[gcode_macro ACTION_LOG]
gcode:
{action_log("TEST")}
5 changes: 5 additions & 0 deletions test/klippy/action_log.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Test case for action_log
CONFIG action_log.cfg
DICTIONARY atmega2560.dict

ACTION_LOG

0 comments on commit b933662

Please sign in to comment.