mirror of
https://github.com/elua/elua.git
synced 2025-01-08 20:56:17 +08:00
Fix typos in I2C documentation
This commit is contained in:
parent
fe4c8d86f7
commit
28c2c86847
@ -48,7 +48,7 @@ data_en =
|
|||||||
},
|
},
|
||||||
|
|
||||||
{ sig = "wrote = #i2c.write#( id, data1, [data2], ..., [datan] )",
|
{ sig = "wrote = #i2c.write#( id, data1, [data2], ..., [datan] )",
|
||||||
desc = "Writes data to a slave that already acknowledged an @#i2c.address@i2c.address@ call.",
|
desc = "Writes data to a slave that has already acknowledged an @#i2c.address@i2c.address@ call.",
|
||||||
args =
|
args =
|
||||||
{
|
{
|
||||||
"$id$ - the ID of the I2C interface.",
|
"$id$ - the ID of the I2C interface.",
|
||||||
@ -56,14 +56,14 @@ data_en =
|
|||||||
"$data2 (optional)$ - the second data to send.",
|
"$data2 (optional)$ - the second data to send.",
|
||||||
"$datan (optional)$ - the %n%-th data to send."
|
"$datan (optional)$ - the %n%-th data to send."
|
||||||
},
|
},
|
||||||
ret = "the number of bytes actually wrote."
|
ret = "the number of bytes actually written."
|
||||||
},
|
},
|
||||||
|
|
||||||
{ sig = "data = #i2c.read#( id, numbytes )",
|
{ sig = "data = #i2c.read#( id, numbytes )",
|
||||||
desc = "Reads a number of bytes from a slave that already acknowledged an @#i2c.address@i2c.address@ call. It acknowledges all the bytes received, except for the last one.",
|
desc = "Reads a number of bytes from a slave that has already acknowledged an @#i2c.address@i2c.address@ call. It acknowledges all the bytes received except for the last one.",
|
||||||
args =
|
args =
|
||||||
{
|
{
|
||||||
"$id$ - the ID os the SPI interface.",
|
"$id$ - the ID of the SPI interface.",
|
||||||
"$numbytes$ - the number of bytes to read."
|
"$numbytes$ - the number of bytes to read."
|
||||||
},
|
},
|
||||||
ret = "a string with all the data read from the I2C interface."
|
ret = "a string with all the data read from the I2C interface."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user