diff options
author | David P <dpoirier@y7mail.com> | 2021-06-12 14:51:05 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-07-18 11:19:44 +1000 |
commit | fdd5b18133e9d9f5a4e76be22ece6632d11d7fee (patch) | |
tree | 07f4e1b5eb2688306ec840a0d099b4408f7b46f2 /docs/esp8266 | |
parent | cbc8d5b61f0742e810ad45bd27d8daa11f3dbbf8 (diff) | |
download | micropython-fdd5b18133e9d9f5a4e76be22ece6632d11d7fee.tar.gz micropython-fdd5b18133e9d9f5a4e76be22ece6632d11d7fee.zip |
docs: Replace master/slave with controller/peripheral in I2C and SPI.
See https://www.oshwa.org/a-resolution-to-redefine-spi-signal-names
Diffstat (limited to 'docs/esp8266')
-rw-r--r-- | docs/esp8266/quickref.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/esp8266/quickref.rst b/docs/esp8266/quickref.rst index bc648a348a..72b3596697 100644 --- a/docs/esp8266/quickref.rst +++ b/docs/esp8266/quickref.rst @@ -270,11 +270,11 @@ alias of :ref:`machine.SoftI2C <machine.SoftI2C>`):: # construct an I2C bus i2c = I2C(scl=Pin(5), sda=Pin(4), freq=100000) - i2c.readfrom(0x3a, 4) # read 4 bytes from slave device with address 0x3a - i2c.writeto(0x3a, '12') # write '12' to slave device with address 0x3a + i2c.readfrom(0x3a, 4) # read 4 bytes from peripheral device with address 0x3a + i2c.writeto(0x3a, '12') # write '12' to peripheral device with address 0x3a buf = bytearray(10) # create a buffer with 10 bytes - i2c.writeto(0x3a, buf) # write the given buffer to the slave + i2c.writeto(0x3a, buf) # write the given buffer to the peripheral Real time clock (RTC) --------------------- |