Add Buffer; go to core v0.1.5
This commit is contained in:
@ -179,6 +179,16 @@ namespace pins {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new zero-initialized buffer.
|
||||
* @param size number of bytes in the buffer
|
||||
*/
|
||||
//%
|
||||
Buffer createBuffer(int size)
|
||||
{
|
||||
return ManagedBuffer(size).leakData();
|
||||
}
|
||||
|
||||
// TODO:
|
||||
void i2cReadBuffer(int address, RefBuffer *buf)
|
||||
{
|
||||
|
Reference in New Issue
Block a user