Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update onewire.md #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions onewire.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ OneWire SEARCH reply
0x45 reply to a SEARCH_ALARMS request
3 pin (0-127)
4 bit 0-6 [optional] address bytes encoded using 8 times 7 bit for 7 bytes of 8 bit
5 bit 7-13 [optional] 1.address[0] = byte[0] + byte[1]<<7 & 0x7F
6 bit 14-20 [optional] 1.address[1] = byte[1]>>1 + byte[2]<<6 & 0x7F
5 bit 7-13 [optional] 1.address[0] = byte[0] + byte[1]<<7 & 0xFF
6 bit 14-20 [optional] 1.address[1] = byte[1]>>1 + byte[2]<<6 & 0xFF
7 .... ...
11 bit 49-55 1.address[6] = byte[6]>>6 + byte[7]<<1 & 0x7F
12 bit 56-63 1.address[7] = byte[8] + byte[9]<<7 & 0x7F
13 bit 64-69 2.address[0] = byte[9]>>1 + byte[10]<<6 &0x7F
11 bit 49-55 1.address[6] = byte[6]>>6 + byte[7]<<1 & 0xFF
12 bit 56-63 1.address[7] = byte[8] + byte[9]<<7 & 0xFF
13 bit 64-69 2.address[0] = byte[9]>>1 + byte[10]<<6 &0xFF
n ... as many bytes as needed (don't exceed MAX_DATA_BYTES though)
n+1 END_SYSEX (0xF7)
```
Expand Down