You check my bit banging method.
You could change the resolution of your sensor using configDS18B20.
**** The user mode bit banging do not use the 1 wire driver . Please use another pin or disable the 1 wire interface.
About Minimum and maximum alarm. I.M.O. you should keep that information into the Raspberry Pi because there is no pin on the DS18B20 to specify an alarm. You have to read the register to get it. Then it is way way faster to compare the temperature of your sensor from variable store into the PI. This make no sense to use alarm inside the DS18B20.
Also the current 1 wire driver doesn't use the alarm info. Then I don't see why you want it.
B.T.W. when you read the sensor with the 1 wire driver it will output the 8 registers.
Code: Select all
[email protected]:/sys/bus/w1/devices/28-000004575f0a $ cat w1_slave
50 01 ff ff 7f ff 10 10 2e : crc=2e YES
50 01 ff ff 7f ff 10 10 2e t=21000
TH = 0xFF TL=0xFF