fix i2cwritebuffer signature
This commit is contained in:
parent
a81a36e0ca
commit
3d52ed44e6
@ -513,4 +513,4 @@
|
|||||||
"serial.writeValue": "Write a name:value pair as a line to the serial port.",
|
"serial.writeValue": "Write a name:value pair as a line to the serial port.",
|
||||||
"serial.writeValue|param|name": "name of the value stream, eg: x",
|
"serial.writeValue|param|name": "name of the value stream, eg: x",
|
||||||
"serial.writeValue|param|value": "to write"
|
"serial.writeValue|param|value": "to write"
|
||||||
}
|
}
|
@ -381,7 +381,7 @@ namespace pins {
|
|||||||
* Write bytes to a 7-bit I2C `address`.
|
* Write bytes to a 7-bit I2C `address`.
|
||||||
*/
|
*/
|
||||||
//%
|
//%
|
||||||
int void i2cWriteBuffer(int address, Buffer buf, bool repeat = false)
|
int i2cWriteBuffer(int address, Buffer buf, bool repeat = false)
|
||||||
{
|
{
|
||||||
return uBit.i2c.write(address << 1, (char*)buf->data, buf->length, repeat);
|
return uBit.i2c.write(address << 1, (char*)buf->data, buf->length, repeat);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user