To get a 90 degrees rotated screen and a resolution of 1024×768 @60Hz add to /boot/config.txt:
display_rotate=3 hdmi_mode=16
DS18B20 (Ansicht auf die Pins):
__ / o| VCC | o| DQ \_o| GND
Raspberry PI GPIOs
PIN | Bel. | Bel. | PIN | |
---|---|---|---|---|
1 | 3V3 | 5V | 2 | |
3 | SDA | 5V | 4 | |
5 | SCL | GND | 6 | |
7 | GPIO-4 | TXD | 8 | |
9 | GND | RXD | 10 | |
11 | GPIO-17 | GPIO-18 | 12 | |
13 | GPIO-27 | GND | 14 | |
15 | GPIO-22 | GPIO-23 | 16 | |
17 | 3V3 | GPIO-24 | 18 | |
19 | MOSI | GND | 20 | |
21 | MISO | GPIO-25 | 22 | |
23 | SCLK | CE0 | 24 | |
25 | GND | CE1 | 26 |
______ [RPI] [MAG3110] ---|_4.7k_|---(1:3V3)---------------(VCC) | (3:SDA)---------_ (GND)------ | (5:SCL)-----_ -----(SDA) | o--------------(7:GPIO-4) --------(SCL) __|__ | ---(25:GND) (INT) | | | __|__ | o---------------- | __ | __ | / o|--- | / o|--- ---|--o| | ---|--o| | \_o|---o \_o|---o | | __|__ __|__
After a reboot, the I2C devices /dev/i2c* exists.
Run i2cdetect -y <port> where <port> is 0 for Revision 1 Raspberry Pis and with 1 for Revision 2 boards.
You get a valid value (see YES) and the temperature 7,375°C:
0f 00 4b 46 ff ff 06 10 0c : crc=0c YES 0f 00 4b 46 ff ff 06 10 0c t=7375
Connect gpio=3 and ground on '#':
_____________________ | O ::#::::::: O | | GPIOs ... | | USB | | Raspi | | LAN | |O______________O_____|
Add to /boot/config.txt
: