1 %module javaupm_tm1637 2 %include "../upm.i" 3 %include "stdint.i" 4 %include "typemaps.i" 5 6 %varargs(4, int digit = 0) write; 7 8 %rename("writeArray") write(uint8_t *digits); 9 %rename("writeString") write(std::string digits); 10 11 %apply uint8_t *INPUT { uint8_t *digits } 12 13 %{ 14 #include "tm1637.h" 15 %} 16 17 %include "tm1637.h" 18 19