• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 %module pyupm_tm1637
2 %include "../upm.i"
3 %include "../carrays_uint8_t.i"
4 
5 %varargs(4, int digit = 0) write;
6 
7 %typemap(in) uint8_t * {
8   void *argp = 0 ;
9   int res = SWIG_ConvertPtr($input, &argp,SWIGTYPE_p_uint8Array, 0 |  0 );
10   $1 = reinterpret_cast< uint8_t * >(argp);
11 }
12 
13 %{
14     #include "tm1637.h"
15 %}
16 %include "tm1637.h"
17