€•u/Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ$/translations/zh_CN/leds/leds-blinkm”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/zh_TW/leds/leds-blinkm”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/it_IT/leds/leds-blinkm”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/ja_JP/leds/leds-blinkm”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/ko_KR/leds/leds-blinkm”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/sp_SP/leds/leds-blinkm”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒLeds BlinkM driver”h]”hŒLeds BlinkM driver”…””}”(hh¨hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hh£hžhhŸŒ>/var/lib/git/docbuild/linux/Documentation/leds/leds-blinkm.rst”h KubhŒ paragraph”“”)”}”(hŒAThe leds-blinkm driver supports the devices of the BlinkM family.”h]”hŒAThe leds-blinkm driver supports the devices of the BlinkM family.”…””}”(hh¹hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khh£hžhubh¸)”}”(hŒñThey are RGB-LED modules driven by a (AT)tiny microcontroller and communicate through I2C. The default address of these modules is 0x09 but this can be changed through a command. By this you could daisy-chain up to 127 BlinkMs on an I2C bus.”h]”hŒñThey are RGB-LED modules driven by a (AT)tiny microcontroller and communicate through I2C. The default address of these modules is 0x09 but this can be changed through a command. By this you could daisy-chain up to 127 BlinkMs on an I2C bus.”…””}”(hhÇhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khh£hžhubh¸)”}”(hŒ³The device accepts RGB and HSB color values through separate commands. Also you can store blinking sequences as "scripts" in the controller and run them. Also fading is an option.”h]”hŒ·The device accepts RGB and HSB color values through separate commands. Also you can store blinking sequences as “scripts†in the controller and run them. Also fading is an option.”…””}”(hhÕhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K hh£hžhubh¸)”}”(hŒ-The interface this driver provides is 3-fold:”h]”hŒ-The interface this driver provides is 3-fold:”…””}”(hhãhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khh£hžhubh¢)”}”(hhh]”(h§)”}”(hŒ7a) LED multicolor class interface for use with triggers”h]”hŒ7a) LED multicolor class interface for use with triggers”…””}”(hhôhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hhñhžhhŸh¶h Kubh¸)”}”(hŒ%The registration follows the scheme::”h]”hŒ$The registration follows the scheme:”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KhhñhžhubhŒ literal_block”“”)”}”(hŒÇblinkm--:rgb:indicator $ ls -h /sys/class/leds/blinkm-1-9:rgb:indicator brightness device max_brightness multi_index multi_intensity power subsystem trigger uevent”h]”hŒÇblinkm--:rgb:indicator $ ls -h /sys/class/leds/blinkm-1-9:rgb:indicator brightness device max_brightness multi_index multi_intensity power subsystem trigger uevent”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1jhŸh¶h Khhñhžhubh¸)”}”(hŒaHue is controlled by the multi_intensity file and lightness is controlled by the brightness file.”h]”hŒaHue is controlled by the multi_intensity file and lightness is controlled by the brightness file.”…””}”(hj"hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khhñhžhubh¸)”}”(hŒ­The order in which to write the intensity values can be found in multi_index. Exactly three values between 0 and 255 must be written to multi_intensity to change the color::”h]”hŒ¬The order in which to write the intensity values can be found in multi_index. Exactly three values between 0 and 255 must be written to multi_intensity to change the color:”…””}”(hj0hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khhñhžhubj)”}”(hŒ#$ echo 255 100 50 > multi_intensity”h]”hŒ#$ echo 255 100 50 > multi_intensity”…””}”hj>sbah}”(h]”h ]”h"]”h$]”h&]”j j!uh1jhŸh¶h K#hhñhžhubh¸)”}”(hŒ]The overall lightness be changed by writing a value between 0 and 255 to the brightness file.”h]”hŒ]The overall lightness be changed by writing a value between 0 and 255 to the brightness file.”…””}”(hjLhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K%hhñhžhubeh}”(h]”Œ6a-led-multicolor-class-interface-for-use-with-triggers”ah ]”h"]”Œ7a) led multicolor class interface for use with triggers”ah$]”h&]”uh1h¡hh£hžhhŸh¶h Kubh¢)”}”(hhh]”(h§)”}”(hŒ,b) LED class interface for use with triggers”h]”hŒ,b) LED class interface for use with triggers”…””}”(hjehžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hjbhžhhŸh¶h K)ubh¸)”}”(hŒ%The registration follows the scheme::”h]”hŒ$The registration follows the scheme:”…””}”(hjshžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K+hjbhžhubj)”}”(hX†blinkm--- $ ls -h /sys/class/leds/blinkm-6-* /sys/class/leds/blinkm-6-9-blue: brightness device max_brightness power subsystem trigger uevent /sys/class/leds/blinkm-6-9-green: brightness device max_brightness power subsystem trigger uevent /sys/class/leds/blinkm-6-9-red: brightness device max_brightness power subsystem trigger uevent”h]”hX†blinkm--- $ ls -h /sys/class/leds/blinkm-6-* /sys/class/leds/blinkm-6-9-blue: brightness device max_brightness power subsystem trigger uevent /sys/class/leds/blinkm-6-9-green: brightness device max_brightness power subsystem trigger uevent /sys/class/leds/blinkm-6-9-red: brightness device max_brightness power subsystem trigger uevent”…””}”hjsbah}”(h]”h ]”h"]”h$]”h&]”j j!uh1jhŸh¶h K-hjbhžhubh¸)”}”(hŒ*(same is /sys/bus/i2c/devices/6-0009/leds)”h]”hŒ*(same is /sys/bus/i2c/devices/6-0009/leds)”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K9hjbhžhubh¸)”}”(hŒ_We can control the colors separated into red, green and blue and assign triggers on each color.”h]”hŒ_We can control the colors separated into red, green and blue and assign triggers on each color.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K;hjbhžhubh¸)”}”(hŒE.g.::”h]”hŒE.g.:”…””}”(hj«hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K>hjbhžhubj)”}”(hŒš$ cat blinkm-6-9-blue/brightness 05 $ echo 200 > blinkm-6-9-blue/brightness $ $ modprobe ledtrig-heartbeat $ echo heartbeat > blinkm-6-9-green/trigger $”h]”hŒš$ cat blinkm-6-9-blue/brightness 05 $ echo 200 > blinkm-6-9-blue/brightness $ $ modprobe ledtrig-heartbeat $ echo heartbeat > blinkm-6-9-green/trigger $”…””}”hj¹sbah}”(h]”h ]”h"]”h$]”h&]”j j!uh1jhŸh¶h K@hjbhžhubeh}”(h]”Œ+b-led-class-interface-for-use-with-triggers”ah ]”h"]”Œ,b) led class interface for use with triggers”ah$]”h&]”uh1h¡hh£hžhhŸh¶h K)ubh¢)”}”(hhh]”(h§)”}”(hŒ5b) Sysfs group to control rgb, fade, hsb, scripts ...”h]”hŒ5b) Sysfs group to control rgb, fade, hsb, scripts ...”…””}”(hjÒhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hjÏhžhhŸh¶h KLubh¸)”}”(hŒŠThis extended interface is available as folder blinkm in the sysfs folder of the I2C device. E.g. below /sys/bus/i2c/devices/6-0009/blinkm”h]”hŒŠThis extended interface is available as folder blinkm in the sysfs folder of the I2C device. E.g. below /sys/bus/i2c/devices/6-0009/blinkm”…””}”(hjàhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KNhjÏhžhubhŒ block_quote”“”)”}”(hŒC$ ls -h /sys/bus/i2c/devices/6-0009/blinkm/ blue green red test ”h]”h¸)”}”(hŒB$ ls -h /sys/bus/i2c/devices/6-0009/blinkm/ blue green red test”h]”hŒB$ ls -h /sys/bus/i2c/devices/6-0009/blinkm/ blue green red test”…””}”(hjôhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KRhjðubah}”(h]”h ]”h"]”h$]”h&]”uh1jîhŸh¶h KRhjÏhžhubh¸)”}”(hŒICurrently supported is just setting red, green, blue and a test sequence.”h]”hŒICurrently supported is just setting red, green, blue and a test sequence.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KUhjÏhžhubh¸)”}”(hŒE.g.::”h]”hŒE.g.:”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KXhjÏhžhubj)”}”(hŒa$ cat * 00 00 00 #Write into test to start test sequence!# $ echo 1 > test $ $ echo 255 > red $”h]”hŒa$ cat * 00 00 00 #Write into test to start test sequence!# $ echo 1 > test $ $ echo 255 > red $”…””}”hj$sbah}”(h]”h ]”h"]”h$]”h&]”j j!uh1jhŸh¶h KZhjÏhžhubh¸)”}”(hŒ as of 07/2024”h]”hŒ as of 07/2024”…””}”(hj2hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KhhjÏhžhubh¸)”}”(hŒ7dl9pf gmx de jstrauss mailbox org”h]”hŒ7dl9pf gmx de jstrauss mailbox org”…””}”(hj@hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KjhjÏhžhubeh}”(h]”Œ-b-sysfs-group-to-control-rgb-fade-hsb-scripts”ah ]”h"]”Œ5b) sysfs group to control rgb, fade, hsb, scripts ...”ah$]”h&]”uh1h¡hh£hžhhŸh¶h KLubeh}”(h]”Œleds-blinkm-driver”ah ]”h"]”Œleds blinkm driver”ah$]”h&]”uh1h¡hhhžhhŸh¶h Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”h¶uh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(h¦NŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”h¶Œ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(j[jXj_j\jÌjÉjSjPuŒ nametypes”}”(j[‰j_‰j̉jS‰uh}”(jXh£j\hñjÉjbjPjÏuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nhžhub.