Skip to content

Commit

Permalink
t5uid1: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Desuuuu committed Aug 28, 2022
1 parent 23e13e9 commit 9687b27
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/configs/atmega2560-t5uid1.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Base config file for atmega2560
CONFIG_MACH_AVR=y
CONFIG_MACH_atmega2560=y
CONFIG_CLOCK_FREQ=16000000
CONFIG_T5UID1_SERIAL=y
CONFIG_T5UID1_SERIAL_PORT=2
68 changes: 68 additions & 0 deletions test/klippy/t5uid1.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[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

[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

[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.500
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

[heater_bed]
heater_pin: PH5
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PK6
control: watermark
min_temp: 0
max_temp: 110

[mcu]
serial: /dev/ttyACM0

[printer]
kinematics: cartesian
max_velocity: 500
max_accel: 3000
max_z_velocity: 25
max_z_accel: 30

[t5uid1]
firmware: dgus_reloaded
22 changes: 22 additions & 0 deletions test/klippy/t5uid1.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
DICTIONARY atmega2560-t5uid1.dict
CONFIG t5uid1.cfg

M117 Print starting

M300
DGUS_PLAY_SOUND

DGUS_PRINT_START

G28
G90

G1 X0 Y0
M400

M73 P50

G1 X2 Y2
M400

DGUS_PRINT_END

0 comments on commit 9687b27

Please sign in to comment.