PRINTDECKDOCS

Software

The Klipper host

A port of klippy, the host program of Klipper, to Go.

The packages in this folder are a port of klippy, the host program of Klipper, to Go. The source is Klipper commit 7bc4d09465d31cd30fc0822e8d0abe02cc8c547f (klipper.version). The port follows the Python code closely, so a change in Klipper is easy to find and copy.

Layout

Klipper fileGo package
klippy/klippy.py (Printer)host
klippy/configfile.pyconfigfile
klippy/pins.pypins
klippy/mcu.pymcu
klippy/gcode.pygcode
klippy/extras/NAME.pyextras/NAME
klippy/kinematics/NAME.pykinematics/NAME
klippy/serialhdl.py, msgproto.py, clocksync.py, reactor.pysame names
klippy/chelper/*.cserialqueue, and later packages for the motion code

extras/all imports each module package. batch runs the host in klippy's batch mode for the tests.

Rules

Tests

Each package compares its result with the result of the real Klipper code where this is possible. tools/klipper-reference runs Klipper in Docker and writes the reference files. batch compares the board commands for printer/printer.cfg with the commands of the real host.