Difference between revisions of "Let your B3 beep and change the LED color"

From BubbaWiki
Jump to navigation Jump to search
(fixed enable/disable LED commands)
Line 3: Line 3:
Log in as administrator and become root.<br>  
Log in as administrator and become root.<br>  


= Buzzer =
= Buzzer =


To beep type the command:<br>  
To beep type the command:<br>  
Line 26: Line 26:
Purple:<br>  
Purple:<br>  
<pre>echo 4 &gt; /sys/bus/platform/devices/bubbatwo/color
<pre>echo 4 &gt; /sys/bus/platform/devices/bubbatwo/color
To disable the LED:
<pre>echo off &gt; /sys/bus/platform/devices/bubbatwo/ledmode</pre>
</pre>  
</pre>  
To disable the LED:<br>  
To enable the LED:<br>  
<pre>echo lit &gt; /sys/bus/platform/devices/bubbatwo/ledmode
<pre>echo lit &gt; /sys/bus/platform/devices/bubbatwo/ledmode
</pre>
</pre>
To enable the LED:
<pre>echo off &gt; /sys/bus/platform/devices/bubbatwo/ledmode</pre>

Revision as of 21:08, 18 November 2010

If you need to attract attention, you can let B3 make some noise!

Log in as administrator and become root.

Buzzer

To beep type the command:

echo 1 > /sys/bus/platform/devices/bubbatwo/buzzer

To turn of the beep, type:

echo 0 > /sys/bus/platform/devices/bubbatwo/buzzer

LED

Use the following commands to change the front LED color..

Blue:

echo 0 > /sys/bus/platform/devices/bubbatwo/color

Red:

echo 1 > /sys/bus/platform/devices/bubbatwo/color

Green:

echo 2 > /sys/bus/platform/devices/bubbatwo/color

Purple:

echo 4 > /sys/bus/platform/devices/bubbatwo/color
To disable the LED: 
<pre>echo off > /sys/bus/platform/devices/bubbatwo/ledmode

To enable the LED:

echo lit > /sys/bus/platform/devices/bubbatwo/ledmode