From d9130671d707401f9b0532ca0b19ef8c708a1925 Mon Sep 17 00:00:00 2001 From: Zion Orent Date: Fri, 5 Dec 2014 08:58:39 -0500 Subject: [PATCH] ssd1327: Modifications to js swig file Signed-off-by: Zion Orent Signed-off-by: Jon Trulson Signed-off-by: Sarah Knepper --- src/lcd/jsupm_i2clcd.i | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lcd/jsupm_i2clcd.i b/src/lcd/jsupm_i2clcd.i index 44050657..c4654027 100644 --- a/src/lcd/jsupm_i2clcd.i +++ b/src/lcd/jsupm_i2clcd.i @@ -1,5 +1,12 @@ %module jsupm_i2clcd %include "../upm.i" +%include "../carrays_uint8_t.i" + +%typemap(in) uint8_t * { + void *argp = 0 ; + int res = SWIG_ConvertPtr($input, &argp,SWIGTYPE_p_uint8Array, 0 | 0 ); + $1 = (uint8_t *)(argp); +} %include "i2clcd.h" %{