Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
raspberry:pi_ogg_player [2016/10/13 02:21] admin [Python Multitouch] |
raspberry:pi_ogg_player [2017/03/28 18:02] admin [Upgrade] |
||
---|---|---|---|
Line 3: | Line 3: | ||
[[http:// | [[http:// | ||
[[http:// | [[http:// | ||
+ | |||
+ | Links & Knowledge: | ||
+ | [[http:// | ||
+ | [[https:// | ||
+ | |||
+ | IP Address: 192.168.0.123\\ | ||
+ | PW: | ||
+ | ---- | ||
+ | ==== Sound Card ==== | ||
+ | [[http:// | ||
---- | ---- | ||
Line 11: | Line 21: | ||
$ sudo apt-get install zip, htop | $ sudo apt-get install zip, htop | ||
$ sudo apt-get install python3, python3-pygame, | $ sudo apt-get install python3, python3-pygame, | ||
+ | |||
---- | ---- | ||
==== Rotate the Display ==== | ==== Rotate the Display ==== | ||
Line 32: | Line 43: | ||
import ft5406 | import ft5406 | ||
ts = ft5406.Touchscreen() | ts = ft5406.Touchscreen() | ||
+ | | ||
while True: | while True: | ||
for touch in ts.poll(): | for touch in ts.poll(): | ||
Line 62: | Line 73: | ||
---- | ---- | ||
==== USB Sound ==== | ==== USB Sound ==== | ||
- | $ lsusb | + | |
- | | + | $ alsamixer |
- | $ amixer | + | |
- | + | find the soundcard number:\\ | |
- | in: | + | $ aplay -l |
- | | + | |
| | ||
+ | in:\\ | ||
+ | < | ||
+ | $ sudo nano ~/.asoundrc | ||
+ | write (with your card number):\\ | ||
pcm.!default { | pcm.!default { | ||
- | | + | |
+ | | ||
} | } | ||
ctl.!default { | ctl.!default { | ||
- | | + | |
+ | | ||
} | } | ||
+ | and in:\\ | ||
+ | $ sudo nano / | ||
+ | change: | ||
+ | defaults.ctl.card 0 | ||
+ | defaults.pcm.card 0 | ||
+ | to (depends on your number):\\ | ||
+ | defaults.ctl.card 1 | ||
+ | defaults.pcm.card 1 | ||
---- | ---- | ||
Line 122: | Line 146: | ||
allow-hotplug eth0:1 | allow-hotplug eth0:1 | ||
iface eth0 inet static | iface eth0 inet static | ||
- | address 192.168.0.101 | + | address 192.168.0.123 |
netmask 255.255.255.0 | netmask 255.255.255.0 | ||
gateway 192.168.0.1 | gateway 192.168.0.1 |