mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-11-08 22:36:04 +01:00
Deploying to gh-pages from @ Klipper3d/klipper@d120a313b7 🚀
This commit is contained in:
@@ -1793,6 +1793,11 @@ reference - see <strong>klippy/extras/servo.py</strong> as an example.</p>
|
|||||||
during the <code>load_config()</code> or "connect event" phases. Use either
|
during the <code>load_config()</code> or "connect event" phases. Use either
|
||||||
<code>raise config.error("my error")</code> or <code>raise printer.config_error("my
|
<code>raise config.error("my error")</code> or <code>raise printer.config_error("my
|
||||||
error")</code> to report the error.</li>
|
error")</code> to report the error.</li>
|
||||||
|
<li>Do not store a reference to the <code>config</code> object in a class member
|
||||||
|
variable (nor in any similar location that may persist past initial
|
||||||
|
module loading). The <code>config</code> object is a reference to a "config
|
||||||
|
loading phase" class and it is not valid to invoke its methods after
|
||||||
|
the "config loading phase" has completed.</li>
|
||||||
<li>Use the "pins" module to configure a pin on a micro-controller. This
|
<li>Use the "pins" module to configure a pin on a micro-controller. This
|
||||||
is typically done with something similar to
|
is typically done with something similar to
|
||||||
<code>printer.lookup_object("pins").setup_pin("pwm",
|
<code>printer.lookup_object("pins").setup_pin("pwm",
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
sitemap.xml.gz
BIN
sitemap.xml.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user