This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://nmecdesign.com/blog/audio-on-the-raspberry-pi-with-node-js/ | |
Audio on the Raspberry Pi with Node.js | |
1st June 2013 | |
I recently wanted to play some audio through the Raspberry Pi programatically, but primarily being a web developer I wasn’t really sure how to approach the task. I can manipulate the DOM all day without breaking a sweat, but without the Web Audio API or <audio> element I was a bit stumped. Previously I’ve played around with Node.js on the Pi, but I didn’t think it would have any packages for audio and thought I’d have to use Python or Scratch which are well supported on the Pi. | |
Turns out you can use Node and it’s pretty simple too. I based my implementation on this Gist: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-startup | |
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar | |
--launcher.library | |
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20140603-1326 | |
-product | |
org.eclipse.epp.package.jee.product | |
--launcher.defaultAction | |
openFile | |
-showsplash | |
org.eclipse.platform |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Your error is different. You need to | |
sudo apt-get install libasound2-dev | |
most likely to get that missing alsa.h header file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*-----( Import needed libraries )-----*/ | |
#include <Wire.h> // Comes with Arduino IDE | |
#include <LiquidCrystal_I2C.h> | |
/*-----( Declare Constants )-----*/ | |
/*-----( Declare objects )-----*/ | |
// set the LCD address to 0x27 for a 20 chars 4 line display | |
// Set the pins on the I2C chip used for LCD connections: | |
// addr, en,rw,rs,d4,d5,d6,d7,bl,blpol | |
#include "DHT.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"/*" { | |
for (;;) { | |
while ((c = input()) != '*' && c != EOF) | |
; /* eat up text of comment */ | |
if (c == '*') { | |
while ((c = input()) == '*') | |
; | |
if (c == '/') | |
break; /* found the end */ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*-----( Import needed libraries )-----*/ | |
#include <Wire.h> // Comes with Arduino IDE | |
#include <LiquidCrystal_I2C.h> | |
/*-----( Declare Constants )-----*/ | |
/*-----( Declare objects )-----*/ | |
// set the LCD address to 0x27 for a 20 chars 4 line display | |
// Set the pins on the I2C chip used for LCD connections: | |
// addr, en,rw,rs,d4,d5,d6,d7,bl,blpol | |
#include "DHT.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Firstly, go to Sketch->Import Library->Add library | |
http://arduino-info.wikispaces.com/LCD-Blue-I2C | |
/* YourDuino.com Example Software Sketch | |
16 character 2 line I2C Display | |
Backpack Interface labelled "YwRobot Arduino LCM1602 IIC V1" | |
terry@yourduino.com */ | |
/*-----( Import needed libraries )-----*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.element14.com/community/servlet/JiveServlet/previewBody/68203-102-6-294412/GPIO.png | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
omxplayer -o local file.mp3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install htop | |
http://askubuntu.com/questions/114997/how-where-do-i-check-my-ubuntu-laptopss-cpu-usage |