mirror of
https://github.com/eddyem/STM8_samples.git
synced 2026-03-21 17:20:54 +03:00
add 1-wire
This commit is contained in:
16
1-wire/tests
Normal file
16
1-wire/tests
Normal file
@@ -0,0 +1,16 @@
|
||||
0x98,0x01,0x4b,0x46,0x7f,0xff,0x08,0x10,0x22
|
||||
|
||||
LSB: 10011000 = 152
|
||||
MSB: 00000001 = 1
|
||||
temperature = 11001 + 1/2 = 25.5
|
||||
|
||||
TH: 01001011 = 75
|
||||
TL: 01000110 = 70
|
||||
|
||||
conf: 01111111 = 127
|
||||
|
||||
res: 0xff - OK
|
||||
res: 1000 - 8
|
||||
res: 0x10 - OK
|
||||
|
||||
CRC: 100010 = 34
|
||||
Reference in New Issue
Block a user