Temperature Sensor Ds18b20 does not work on other pins, only on 4
|
4th Jun, 2014, 11:01 PM
Post: #11
|
|||
|
|||
RE: Temperature Sensor Ds18b20 does not work on other pins, only on 4
I downloaded linux-header 3.12.20 from git
Terminal xbian@xbian /usr/src $ sudo git clone --depth 1 https://github.com/raspberrypi/linux.git Terminal xbian@xbian /usr/src $ head -n 100 linux-header-3.12.20+/arch/arm/mach-bcm2708/bcm2708.c ...... // use GPIO 4 for the one-wire GPIO pin, if enabled #define W1_GPIO 4 ...... Next, linux-header-3.12.20+/drivers/w1/masters/w1-gpio.c don't patched to make change pin in /boot/cmdline.txt. Patch here https://github.com/raspberrypi/linux/pull/457/files |
|||
« Next Oldest | Next Newest »
|