Step 5: Command the RGB led by the terminal

Now you can start the program.


sudo python rgb.py

You can read RGB-->

Now use 0 for OFF the color and 1 for ON color.

Use first number for Red, second number for Green and third for Blue.

For blue write 001 and after click enter

For green write 010 and after click enter

For red write 100 and after click enter

The fun comes when you start mixing colors.

Try 101 click enter and see the color.

For play a sound I raccommend to use Pygame (http://www.pygame.org/news.html).<br>The code is this:<br><br>import pygame<br>pygame.mixer.init()<br>pygame.mixer.music.load(&quot;myFile.wav&quot;)<br>pygame.mixer.music.play()<br>while pygame.mixer.music.get_busy() == True:<br> continue

About This Instructable




More by masteruan:Make SMART Your Washing Machine Arduino UNO MQTT Meteo Station Microview Digital Dice 
Add instructable to: