36
36
* Adafruit CircuitPython firmware for the supported boards:
37
37
https://github.com/adafruit/circuitpython/releases
38
38
39
- * Adafruit Bus Device library:
39
+ * Adafruit Bus Device library:
40
40
https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
41
41
42
- * Adafruit binascii library:
42
+ * Adafruit binascii library:
43
43
https://github.com/adafruit/Adafruit_CircuitPython_binascii
44
44
45
45
"""
46
+
46
47
import time
47
48
from struct import pack
48
49
@@ -106,6 +107,7 @@ def _convert_i2c_addr_to_atecc_addr(i2c_addr=0x60):
106
107
OP_WRITE : const (26 ),
107
108
}
108
109
110
+ # pylint: disable=line-too-long
109
111
"""
110
112
Configuration Zone Bytes
111
113
@@ -122,13 +124,21 @@ def _convert_i2c_addr_to_atecc_addr(i2c_addr=0x60):
122
124
123
125
I2C Config
124
126
125
- HEX DEC BIN Description
126
- Byte 14: C0 192 1100 0000
127
- ^xxx xxxx Bit 0 (MSB): 0:Single Wire, 1:I2C; Bit 1-7: Set by Microchip
128
- Byte 16: C0 192 1100 0000 Default 7 bit I2C Address: 0xC0>>1: 0x60 ATECC608A-MAHDA
129
- Byte 16: 6A 106 0110 1010 Default 7 bit I2C Address: 0x6A>>1: 0x35 ATECC608A-TNGTLS
130
- Byte 16: 20 32 0010 0000 Default 7 bit I2C Address: 0x20>>1: 0x10 ATECC608A-UNKNOWN
127
+ +------+-------+---------+-------------+---------------------------------------------------------------+
128
+ | HEX | DEC | BIN | Description |
129
+ +======+=======+=========+=============+===============================================================+
130
+ | Byte 14: C0 | 192 | 1100 0000 | |
131
+ | | | ^xxx xxxx | Bit 0 (MSB): 0:Single Wire, 1:I2C; Bit 1-7: Set by Microchip |
132
+ +--------------+---------+-------------+---------------------------------------------------------------+
133
+ | Byte 16: C0 | 192 | 1100 0000 | Default 7 bit I2C Address: 0xC0>>1: 0x60 ATECC608A-MAHDA |
134
+ +--------------+---------+-------------+---------------------------------------------------------------+
135
+ | Byte 16: 6A | 106 | 0110 1010 | Default 7 bit I2C Address: 0x6A>>1: 0x35 ATECC608A-TNGTLS |
136
+ +--------------+---------+-------------+---------------------------------------------------------------+
137
+ | Byte 16: 20 | 32 | 0010 0000 | Default 7 bit I2C Address: 0x20>>1: 0x10 ATECC608A-UNKNOWN |
138
+ +--------------+---------+-------------+---------------------------------------------------------------+
139
+
131
140
"""
141
+
132
142
CFG_TLS = bytes (
133
143
bytearray (
134
144
unhexlify (
0 commit comments