The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.http://www.raspberrypi.org/faqs
wget http://downloads.raspberrypi.org/images/raspbian/2012-12-16-wheezy-raspbian/2012-12-16-wheezy-raspbian.zip
unzip ~/2012-12-16-wheezy-raspbian.zip
umount /dev/sdd1
dd bs=4M if=~/2012-12-16-wheezy-raspbian.img of=/dev/sdd
sudo sync
- First run of raspbian and raspbmc setup guides; Timezone (America/Chicago), locale (en_US.UTF-8), keyboard, resolution, overclock, etc
- /boot/config.txt (Docs)
- sudo raspi-config
hdmi_safe=1
import RPi.GPIO as GPIO
GPIO.setup(7, GPIO.OUT)
GPIO.output(7, True)
GPIO.output(7,False)
Bash (everything is a file)
sudo su -
echo "4" > /sys/class/gpio/export
echo "4" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio4/direction
echo "1" > /sys/class/gpio/gpio4/value
echo "0" > /sys/class/gpio/gpio4/value
echo "0" > /sys/class/gpio/export
echo "in" > /sys/class/gpio/gpio0/direction
cat /sys/class/gpio/gpio0/value
#include <wiringPi.h>
#include <stdio.h>
int main (void)
{
int pin = 7;
if (wiringPiSetup() == -1)
exit (1);
pinMode(pin, OUTPUT);
for (;;){
printf("LED On\n");
digitalWrite(pin, 1);
delay(250);
printf("LED Off\n");
digitalWrite(pin, 0);
delay(250);
}
return 0;
}
An award-winning [FOSS] (GPL) software media player and entertainment hub for digital media. It has been designed to be the perfect companion for your HTPC. Play popular audio and video formats, stream your multimedia from anywhere. Play CDs and DVDs from disk or image file. Scan your media and create a library with box covers, descriptions, and fanart. There are playlist and slideshow functions, a weather forecast feature and many audio visualizations.