Changes between Version 1 and Version 2 of linux/led
- Timestamp:
- 11/23/2020 09:54:52 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
linux/led
v1 v2 42 42 Some 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): 43 43 </p> 44 <pre class="wiki"># turn bi-color LED Green44 <pre class="wiki"># turn bi-color LED Red 45 45 echo 0 > /sys/class/leds/user1/brightness 46 46 echo 255 > /sys/class/leds/user2/brightness 47 # turn bi-color LED Red47 # turn bi-color LED Green 48 48 echo 255 > /sys/class/leds/user1/brightness 49 49 echo 0 > /sys/class/leds/user2/brightness