aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-03-29 15:05:49 +1300
committerArslaan Pathan <[email protected]>2026-03-29 15:05:49 +1300
commit81013f1cd6f9b404a90e4547b693e66683b31c0d (patch)
tree0d61d8459216685beacadbf96cb858e67a592622 /README.md
parent392a6c6abbe5d9267f7a9c6c55fd098d94f00281 (diff)
downloadzwzn-freefit-re-81013f1cd6f9b404a90e4547b693e66683b31c0d.tar.xz
zwzn-freefit-re-81013f1cd6f9b404a90e4547b693e66683b31c0d.zip
Oops, forgot double space for packet structure
Diffstat (limited to 'README.md')
-rw-r--r--README.md46
1 files changed, 23 insertions, 23 deletions
diff --git a/README.md b/README.md
index 21dbd27..321d78f 100644
--- a/README.md
+++ b/README.md
@@ -27,33 +27,33 @@ byte[1] = battery percentage (0-100)
### syncTime
-Time sync packet structure (write/6E40FC20)
-byte[0] = 0x01 (command)
-byte[1-4] = Unix timestamp (big endian, seconds)
-byte[5-8] = timezone offset (big endian, seconds)
-byte[9] = i (unknown param, use 0x00)
-byte[10] = language code
-byte[11] = 0x01 if traditional Chinese, else 0x00
+Time sync packet structure (write/6E40FC20)
+byte[0] = 0x01 (command)
+byte[1-4] = Unix timestamp (big endian, seconds)
+byte[5-8] = timezone offset (big endian, seconds)
+byte[9] = i (unknown param, use 0x00)
+byte[10] = language code
+byte[11] = 0x01 if traditional Chinese, else 0x00
Response: 0x81 0x00 (success, notify/6E40FC21)
### enterMakeDial (watch face)
-Watch face header packet (write/6EFC20)
-byte[0] = 0xE4 (ZK_DIAL command)
-byte[1] = 0x51 (mode flag)
-byte[2] = 0x01 (start)
-byte[3] = 0x00
-byte[4-5] = total packet count (big endian)
-byte[6-9] = total image bytes (big endian)
-byte[10] = 0x00
-byte[11-12] = MTU size (big endian)
-byte[13] = rotation flag
-byte[14] = 0x01
-byte[15] = time text direction
-byte[16] = 0x00
-byte[17-18] = transparent color (RGB565)
-byte[19-20] = checksum (sum of all image bytes, big endian)
-byte[21] = show date (0x01 = yes, 0x00 = no)
+Watch face header packet (write/6EFC20)
+byte[0] = 0xE4 (ZK_DIAL command)
+byte[1] = 0x51 (mode flag)
+byte[2] = 0x01 (start)
+byte[3] = 0x00
+byte[4-5] = total packet count (big endian)
+byte[6-9] = total image bytes (big endian)
+byte[10] = 0x00
+byte[11-12] = MTU size (big endian)
+byte[13] = rotation flag
+byte[14] = 0x01
+byte[15] = time text direction
+byte[16] = 0x00
+byte[17-18] = transparent color (RGB565)
+byte[19-20] = checksum (sum of all image bytes, big endian)
+byte[21] = show date (0x01 = yes, 0x00 = no)
Header packet is followed by chunked RGB565 data, 1 chunk = MTU-14 bytes