2016-03-01 20:10:17 +01:00
|
|
|
// Include doxygen-generated documentation
|
|
|
|
|
%include "pyupm_doxy2swig.i"
|
|
|
|
|
|
|
|
|
|
%module pyupm_apa102
|
|
|
|
|
|
|
|
|
|
%include "../upm.i"
|
|
|
|
|
|
|
|
|
|
%feature("autodoc", "3");
|
|
|
|
|
|
|
|
|
|
// setLeds
|
|
|
|
|
%typemap(in) (uint8_t *colors) {
|
|
|
|
|
if (PyByteArray_Check($input)) {
|
|
|
|
|
$1 = (uint8_t*) PyByteArray_AsString($input);
|
|
|
|
|
} else {
|
|
|
|
|
PyErr_SetString(PyExc_ValueError, "bytearray expected");
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
%include "apa102.hpp"
|
2016-03-01 20:10:17 +01:00
|
|
|
|
|
|
|
|
%{
|
|
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "apa102.hpp"
|
2016-03-01 20:10:17 +01:00
|
|
|
%}
|