Changes between Version 1 and Version 2 of linux/led


Ignore:
Timestamp:
11/23/2020 09:54:52 PM (2 months ago)
Author:
Cale Collins
Comment:

switched red and green comments based on customer feedback

Legend:

Unmodified
Added
Removed
Modified
  • linux/led

    v1 v2  
    4242Some boards (consult the board user manual) use a bi-color LED (typical green/red) where 2 GPIO's are used (connected to each side of the LED). In this scenario setting one LED on and the other Off would produce one color and flipping them would produce the other (while turning them both on or both off would result in no LED's lit):
    4343</p>
    44 <pre class="wiki"># turn bi-color LED Green
     44<pre class="wiki"># turn bi-color LED Red
    4545echo 0 &gt; /sys/class/leds/user1/brightness
    4646echo 255 &gt; /sys/class/leds/user2/brightness
    47 # turn bi-color LED Red
     47# turn bi-color LED Green
    4848echo 255 &gt; /sys/class/leds/user1/brightness
    4949echo 0 &gt; /sys/class/leds/user2/brightness