@@ -28,15 +28,15 @@ Example usage::
2828 # depending on the port, extra parameters may be required
2929 # to select the peripheral and/or pins to use
3030
31- i2c.scan() # scan for slaves , returning a list of 7-bit addresses
31+ i2c.scan() # scan for peripherals , returning a list of 7-bit addresses
3232
33- i2c.writeto(42, b'123') # write 3 bytes to slave with 7-bit address 42
34- i2c.readfrom(42, 4) # read 4 bytes from slave with 7-bit address 42
33+ i2c.writeto(42, b'123') # write 3 bytes to peripheral with 7-bit address 42
34+ i2c.readfrom(42, 4) # read 4 bytes from peripheral with 7-bit address 42
3535
36- i2c.readfrom_mem(42, 8, 3) # read 3 bytes from memory of slave 42,
37- # starting at memory-address 8 in the slave
38- i2c.writeto_mem(42, 2, b'\x10') # write 1 byte to memory of slave 42
39- # starting at address 2 in the slave
36+ i2c.readfrom_mem(42, 8, 3) # read 3 bytes from memory of peripheral 42,
37+ # starting at memory-address 8 in the peripheral
38+ i2c.writeto_mem(42, 2, b'\x10') # write 1 byte to memory of peripheral 42
39+ # starting at address 2 in the peripheral
4040
4141Constructors
4242------------
@@ -95,7 +95,7 @@ General Methods
9595Primitive I2C operations
9696------------------------
9797
98- The following methods implement the primitive I2C master bus operations and can
98+ The following methods implement the primitive I2C controller bus operations and can
9999be combined to make any I2C transaction. They are provided if you need more
100100control over the bus, otherwise the standard methods (see below) can be used.
101101
@@ -115,7 +115,7 @@ These methods are only available on the `machine.SoftI2C` class.
115115 read is the length of *buf *. An ACK will be sent on the bus after
116116 receiving all but the last byte. After the last byte is received, if *nack *
117117 is true then a NACK will be sent, otherwise an ACK will be sent (and in this
118- case the slave assumes more bytes are going to be read in a later call).
118+ case the peripheral assumes more bytes are going to be read in a later call).
119119
120120.. method :: I2C.write(buf)
121121
@@ -126,34 +126,34 @@ These methods are only available on the `machine.SoftI2C` class.
126126Standard bus operations
127127-----------------------
128128
129- The following methods implement the standard I2C master read and write
130- operations that target a given slave device.
129+ The following methods implement the standard I2C controller read and write
130+ operations that target a given peripheral device.
131131
132132.. method :: I2C.readfrom(addr, nbytes, stop=True, /)
133133
134- Read *nbytes * from the slave specified by *addr *.
134+ Read *nbytes * from the peripheral specified by *addr *.
135135 If *stop * is true then a STOP condition is generated at the end of the transfer.
136136 Returns a `bytes ` object with the data read.
137137
138138.. method :: I2C.readfrom_into(addr, buf, stop=True, /)
139139
140- Read into *buf * from the slave specified by *addr *.
140+ Read into *buf * from the peripheral specified by *addr *.
141141 The number of bytes read will be the length of *buf *.
142142 If *stop * is true then a STOP condition is generated at the end of the transfer.
143143
144144 The method returns ``None ``.
145145
146146.. method :: I2C.writeto(addr, buf, stop=True, /)
147147
148- Write the bytes from *buf * to the slave specified by *addr *. If a
148+ Write the bytes from *buf * to the peripheral specified by *addr *. If a
149149 NACK is received following the write of a byte from *buf * then the
150150 remaining bytes are not sent. If *stop * is true then a STOP condition is
151151 generated at the end of the transfer, even if a NACK is received.
152152 The function returns the number of ACKs that were received.
153153
154154.. method :: I2C.writevto(addr, vector, stop=True, /)
155155
156- Write the bytes contained in *vector * to the slave specified by *addr *.
156+ Write the bytes contained in *vector * to the peripheral specified by *addr *.
157157 *vector * should be a tuple or list of objects with the buffer protocol.
158158 The *addr * is sent once and then the bytes from each object in *vector *
159159 are written out sequentially. The objects in *vector * may be zero bytes
@@ -170,19 +170,19 @@ Memory operations
170170
171171Some I2C devices act as a memory device (or set of registers) that can be read
172172from and written to. In this case there are two addresses associated with an
173- I2C transaction: the slave address and the memory address. The following
173+ I2C transaction: the peripheral address and the memory address. The following
174174methods are convenience functions to communicate with such devices.
175175
176176.. method :: I2C.readfrom_mem(addr, memaddr, nbytes, *, addrsize=8)
177177
178- Read *nbytes * from the slave specified by *addr * starting from the memory
178+ Read *nbytes * from the peripheral specified by *addr * starting from the memory
179179 address specified by *memaddr *.
180180 The argument *addrsize * specifies the address size in bits.
181181 Returns a `bytes ` object with the data read.
182182
183183.. method :: I2C.readfrom_mem_into(addr, memaddr, buf, *, addrsize=8)
184184
185- Read into *buf * from the slave specified by *addr * starting from the
185+ Read into *buf * from the peripheral specified by *addr * starting from the
186186 memory address specified by *memaddr *. The number of bytes read is the
187187 length of *buf *.
188188 The argument *addrsize * specifies the address size in bits (on ESP8266
@@ -192,7 +192,7 @@ methods are convenience functions to communicate with such devices.
192192
193193.. method :: I2C.writeto_mem(addr, memaddr, buf, *, addrsize=8)
194194
195- Write *buf * to the slave specified by *addr * starting from the
195+ Write *buf * to the peripheral specified by *addr * starting from the
196196 memory address specified by *memaddr *.
197197 The argument *addrsize * specifies the address size in bits (on ESP8266
198198 this argument is not recognised and the address size is always 8 bits).
0 commit comments