mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 01:10:22 +03:00
20 lines
334 B
OpenEdge ABL
20 lines
334 B
OpenEdge ABL
![]() |
%module jsupm_apa102
|
||
|
|
||
|
%include "../upm.i"
|
||
|
%inline %{
|
||
|
#include <node_buffer.h>
|
||
|
%}
|
||
|
|
||
|
%typemap(in) (uint8_t *colors) {
|
||
|
if (!node::Buffer::HasInstance($input)) {
|
||
|
SWIG_exception_fail(SWIG_ERROR, "Expected a node Buffer");
|
||
|
}
|
||
|
$1 = (uint8_t*) node::Buffer::Data($input);
|
||
|
}
|
||
|
|
||
|
%include "apa102.h"
|
||
|
|
||
|
%{
|
||
|
#include "apa102.h"
|
||
|
%}
|