SilverThings / bulldog

Java GPIO Library for BeagleBoneBlack, Raspberry Pi and CubieBoard.
http://www.silverspoon.io
Apache License 2.0
49 stars 23 forks source link

How to use DS18B20TemperatureSensor #56

Closed max90727 closed 9 years ago

max90727 commented 9 years ago

Hi. I found the class DS18B20TemperatureSensor in your library but I am confuse about the input parameter "File deviceFile", could you tell me what kind file it is? Thanks.

sbunciak commented 9 years ago

Hi, that's meant to be the sensor-specific directory created by w1 kernel module. Default path is /sys/bus/w1/devices/28-xxx. You might want to check https://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/ds18b20

max90727 commented 9 years ago

Thanks for you reply. I was going to tell you I found the solution.