From 4189c0c988daa939be0e8ec979ce0ae0563c4b7d Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Mon, 12 Dec 2022 14:13:40 +0100 Subject: Create docs from python code --- docs/Scripting/Strip.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docs/Scripting/Strip.md (limited to 'docs/Scripting/Strip.md') diff --git a/docs/Scripting/Strip.md b/docs/Scripting/Strip.md new file mode 100644 index 0000000..cd06519 --- /dev/null +++ b/docs/Scripting/Strip.md @@ -0,0 +1,18 @@ +# Documentation for `strip` + +::: luxcena_neo.strip.Strip + handler: python + options: + show_root_heading: true + show_source: false + +--- + +## A note on colors +Most methods which need colors takes a `*color` parameter. This is because it interprets multiple types of colors. The example below illustrates this, each of the lines has the exact same effect on the led strip. +```python +set_pixel_color(0, "#fafafa") +set_pixel_color(0, 16448250) +set_pixel_color(0, 250, 250, 250) +set_pixel_color(0, (250, 250, 250)) +``` -- cgit v1.2.3