Commit 850f79e5 authored by Damien George's avatar Damien George
Browse files

docs/library/machine.I2C: Remove WiPy-specific return values.

cc3200 has been updated to conform to the API and now returns None.
parent 9d7c5373
...@@ -160,8 +160,7 @@ methods are convenience functions to communicate with such devices. ...@@ -160,8 +160,7 @@ methods are convenience functions to communicate with such devices.
The argument `addrsize` specifies the address size in bits (on ESP8266 The argument `addrsize` specifies the address size in bits (on ESP8266
this argument is not recognised and the address size is always 8 bits). this argument is not recognised and the address size is always 8 bits).
On WiPy the return value is the number of bytes read. Otherwise the The method returns `None`.
return value is `None`.
.. method:: I2C.writeto_mem(addr, memaddr, buf, \*, addrsize=8) .. method:: I2C.writeto_mem(addr, memaddr, buf, \*, addrsize=8)
...@@ -170,5 +169,4 @@ methods are convenience functions to communicate with such devices. ...@@ -170,5 +169,4 @@ methods are convenience functions to communicate with such devices.
The argument `addrsize` specifies the address size in bits (on ESP8266 The argument `addrsize` specifies the address size in bits (on ESP8266
this argument is not recognised and the address size is always 8 bits). this argument is not recognised and the address size is always 8 bits).
On WiPy the return value is the number of bytes written. Otherwise the The method returns `None`.
return value is `None`.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment