mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 07:04:01 -06:00
docs: Update Protocol documentation with enumerations
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
2c851e1621
commit
c30a6f2e6b
2 changed files with 38 additions and 28 deletions
|
@ -12,7 +12,11 @@ format of commands and their transmission. The commands here are
|
|||
described using their "printf" style syntax - for those unfamiliar
|
||||
with that format, just note that where a '%...' sequence is seen it
|
||||
should be replaced with an actual integer. For example, a description
|
||||
with "count=%c" could be replaced with the text "count=10".
|
||||
with "count=%c" could be replaced with the text "count=10". Note that
|
||||
parameters that are considered "enumerations" (see the above protocol
|
||||
document) actually take a string value which is automatically
|
||||
converted to an integer value for the micro-controller. This is common
|
||||
with parameters named "pin" (or that have a suffix of "_pin").
|
||||
|
||||
Startup Commands
|
||||
================
|
||||
|
@ -23,14 +27,6 @@ commands available for that purpose. Unlike most micro-controller
|
|||
commands, these commands run as soon as they are received and they do
|
||||
not require any particular setup.
|
||||
|
||||
Several of these commands will take a "pin=%u" parameter. The
|
||||
low-level micro-controller software uses integer encodings of the
|
||||
hardware pin numbers, but to make things more readable the host will
|
||||
translate human readable pin names (eg, "PA3") to their equivalent
|
||||
integer encodings. By convention, any parameter named "pin" or that
|
||||
has a "_pin" suffix will use pin name translation by the
|
||||
host.
|
||||
|
||||
Common startup commands:
|
||||
|
||||
* `set_digital_out pin=%u value=%c` : This command immediately
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue