spi: Make Spi write() work from SWIG with typemaps
authorBrendan Le Foll <brendan.le.foll@intel.com>
Wed, 14 Jan 2015 11:41:43 +0000 (11:41 +0000)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Wed, 14 Jan 2015 11:52:12 +0000 (11:52 +0000)
commitb7a0856f51ee53b61802e97b6c6801bff807785d
treebd13b8600689029dc7ca5cd7ff0801b2c3642652
parent17ee0c96696178e94715304dc73c5f15f6bf7036
spi: Make Spi write() work from SWIG with typemaps

This change also changes the C++ API write(char) call to writeByte(uint8_t) and
the write() call now takes a uint8_t* instead of a char*. This should not alter
any code significantly and does not affect the C API.

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
api/mraa/spi.hpp
examples/c++/Spi-pot.cpp
examples/javascript/spi.js [new file with mode: 0644]
examples/python/spi.py [new file with mode: 0644]
src/javascript/mraajs.i
src/python/python-mraa.i