mirror of
https://github.com/eclipse/upm.git
synced 2025-03-25 09:49:59 +03:00
17 lines
325 B
OpenEdge ABL
17 lines
325 B
OpenEdge ABL
%module pyupm_tm1637
|
|
%include "../upm.i"
|
|
%include "../carrays_uint8_t.i"
|
|
|
|
%varargs(4, int digit = 0) write;
|
|
|
|
%typemap(in) uint8_t * {
|
|
void *argp = 0 ;
|
|
int res = SWIG_ConvertPtr($input, &argp,SWIGTYPE_p_uint8Array, 0 | 0 );
|
|
$1 = reinterpret_cast< uint8_t * >(argp);
|
|
}
|
|
|
|
%{
|
|
#include "tm1637.h"
|
|
%}
|
|
%include "tm1637.h"
|