mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
microphone: JavaScript example for Grove microphone
Signed-off-by: Zion Orent <zorent@ics.com> Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Sarah Knepper <sarah.knepper@intel.com>
This commit is contained in:

committed by
Sarah Knepper

parent
0ef81a3b1c
commit
2a8bbb0b8c
@ -2,6 +2,12 @@
|
||||
%include "../upm.i"
|
||||
%include "../carrays_uint16_t.i"
|
||||
|
||||
%typemap(in) uint16_t * {
|
||||
void *argp = 0 ;
|
||||
int res = SWIG_ConvertPtr($input, &argp,SWIGTYPE_p_uint16Array, 0 | 0 );
|
||||
$1 = (uint16_t *)(argp);
|
||||
}
|
||||
|
||||
%{
|
||||
#include "mic.h"
|
||||
%}
|
||||
|
Reference in New Issue
Block a user