Class Read1

java.lang.Object
  |
  +--Read1

public class Read1
extends java.lang.Object

Simple class to find the first family code 10 device and read its temp.


Constructor Summary
Read1()
          Constructor -- no use yet
 
Method Summary
static boolean findDevice()
          See if there is any family 10 device and if so read its temp.
static void main(java.lang.String[] args)
          Call the 1-Wire methods from here.
static void waitWhile(long howLong)
          wait howLong number of milliseconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Read1

public Read1()
Constructor -- no use yet
Method Detail

main

public static void main(java.lang.String[] args)
Call the 1-Wire methods from here. wait some time between temp conversions call the garbage collector between temp conversions In future could read command line to get sample interval

findDevice

public static boolean findDevice()
See if there is any family 10 device and if so read its temp. The first device found is read.

waitWhile

public static void waitWhile(long howLong)
wait howLong number of milliseconds