diff --git a/test/klippy/dgus_display.cfg b/test/klippy/dgus_display.cfg new file mode 100644 index 00000000..cdab4df8 --- /dev/null +++ b/test/klippy/dgus_display.cfg @@ -0,0 +1,72 @@ +[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 + +[dgus_display] +type: t5uid1 +uart_bus: usart2 +implementation: dgus_printer_menu +volume: 50 +disable_ack: True diff --git a/test/klippy/dgus_display.test b/test/klippy/dgus_display.test new file mode 100644 index 00000000..2cd002a9 --- /dev/null +++ b/test/klippy/dgus_display.test @@ -0,0 +1,18 @@ +# Test case for dgus_display +CONFIG dgus_display.cfg +DICTIONARY atmega2560.dict + +M73 P50 +M117 Hello world +M300 S0 + +DGUS_PLAY_SOUND START=0 +DGUS_STOP_SOUND + +DGUS_SET_VOLUME VOLUME=20 +DGUS_GET_VOLUME + +DGUS_SET_BRIGHTNESS BRIGHTNESS=30 +DGUS_GET_BRIGHTNESS + +DGUS_SET_FILENAME NAME=test.gcode