mirror of
https://github.com/eclipse/upm.git
synced 2025-03-22 16:37:29 +03:00
26 lines
428 B
OpenEdge ABL
26 lines
428 B
OpenEdge ABL
![]() |
// 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;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
%include "apa102.h"
|
||
|
|
||
|
%{
|
||
|
|
||
|
#include "apa102.h"
|
||
|
%}
|