@@ -86,13 +86,13 @@ Constructors
8686Methods
8787-------
8888
89- .. method :: i2c .deinit()
89+ .. method :: I2C .deinit()
9090
9191 Turn off the I2C bus.
9292
9393.. only :: port_pyboard
9494
95- .. method :: i2c .init(mode, \*, addr=0x12, baudrate=400000, gencall=False)
95+ .. method :: I2C .init(mode, \*, addr=0x12, baudrate=400000, gencall=False)
9696
9797 Initialise the I2C bus with the given parameters:
9898
@@ -101,11 +101,11 @@ Methods
101101 - ``baudrate `` is the SCL clock rate (only sensible for a master)
102102 - ``gencall `` is whether to support general call mode
103103
104- .. method :: i2c .is_ready(addr)
104+ .. method :: I2C .is_ready(addr)
105105
106106 Check if an I2C device responds to the given address. Only valid when in master mode.
107107
108- .. method :: i2c .mem_read(data, addr, memaddr, \*, timeout=5000, addr_size=8)
108+ .. method :: I2C .mem_read(data, addr, memaddr, \*, timeout=5000, addr_size=8)
109109
110110 Read from the memory of an I2C device:
111111
@@ -118,7 +118,7 @@ Methods
118118 Returns the read data.
119119 This is only valid in master mode.
120120
121- .. method :: i2c .mem_write(data, addr, memaddr, \*, timeout=5000, addr_size=8)
121+ .. method :: I2C .mem_write(data, addr, memaddr, \*, timeout=5000, addr_size=8)
122122
123123 Write to the memory of an I2C device:
124124
@@ -131,7 +131,7 @@ Methods
131131 Returns ``None ``.
132132 This is only valid in master mode.
133133
134- .. method :: i2c .recv(recv, addr=0x00, \*, timeout=5000)
134+ .. method :: I2C .recv(recv, addr=0x00, \*, timeout=5000)
135135
136136 Receive data on the bus:
137137
@@ -143,7 +143,7 @@ Methods
143143 Return value: if ``recv `` is an integer then a new buffer of the bytes received,
144144 otherwise the same buffer that was passed in to ``recv ``.
145145
146- .. method :: i2c .send(send, addr=0x00, \*, timeout=5000)
146+ .. method :: I2C .send(send, addr=0x00, \*, timeout=5000)
147147
148148 Send data on the bus:
149149
@@ -153,7 +153,7 @@ Methods
153153
154154 Return value: ``None ``.
155155
156- .. method :: i2c .scan()
156+ .. method :: I2C .scan()
157157
158158 Scan all I2C addresses from 0x01 to 0x7f and return a list of those that respond.
159159 Only valid when in master mode.
0 commit comments