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

From BubbaWiki
Jump to navigation Jump to search
(Created page with 'If you need to attract attention, you can let B3 make some noise!<br> Log in as administrator and become root.<br> To beep type the command:<br> <pre>echo 1 > /sys/bus/platf...')
 
(fixed some formatting)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
If you need to attract attention, you can let B3 make some noise!<br>
If you need to attract attention, you can let B3 make some noise!<br>  


Log in as administrator and become root.<br>
Log in as administrator and become root.<br>  


To beep type the command:<br>
= Buzzer  =
 
To beep type the command:<br>  
<pre>echo 1 &gt; /sys/bus/platform/devices/bubbatwo/buzzer
<pre>echo 1 &gt; /sys/bus/platform/devices/bubbatwo/buzzer
</pre>
</pre>  
To turn of the beep, type:<br>
To turn of the beep, type:<br>  
<pre>echo 0 &gt; /sys/bus/platform/devices/bubbatwo/buzzer
<pre>echo 0 &gt; /sys/bus/platform/devices/bubbatwo/buzzer
</pre>
</pre>  
<br>
= LED<br> =


Use the following commands to change the front LED color..<br>
Use the following commands to change the front LED color..<br>  


Blue<br>
Blue:<br>  
<pre>echo 0 &gt; /sys/bus/platform/devices/bubbatwo/color
<pre>echo 0 &gt; /sys/bus/platform/devices/bubbatwo/color
</pre>
</pre>  
Red<br>
Red:<br>  
<pre>echo 1 &gt; /sys/bus/platform/devices/bubbatwo/color
<pre>echo 1 &gt; /sys/bus/platform/devices/bubbatwo/color
</pre>
</pre>  
Green<br>
Green:<br>  
<pre>echo 2 &gt; /sys/bus/platform/devices/bubbatwo/color
<pre>echo 2 &gt; /sys/bus/platform/devices/bubbatwo/color
</pre>
</pre>  
Purple<br>
Purple:<br>  
<pre>echo 4 &gt; /sys/bus/platform/devices/bubbatwo/color</pre>
<pre>echo 4 &gt; /sys/bus/platform/devices/bubbatwo/color
<br>
</pre>  
 
To disable the LED:<br>  
To disable the LED:<br>
<pre>echo off &gt; /sys/bus/platform/devices/bubbatwo/ledmode</pre>
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>
<br>
echo 30000 &gt; /sys/bus/platform/devices/bubbatwo/ledfreq<br>

Latest revision as of 07:02, 26 April 2011

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:

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

To enable the LED:

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