Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
import pymaa as maa
import time
-maa.init()
x = maa.Gpio(8)
x.dir(maa.MAA_GPIO_OUT)
import pymaa as maa
import time
-maa.init()
x = maa.PWM(0,3)
x.enable(1);
x.period_us(20)
import pymaa
-pumaa.init()
x = pymaa.Gpio(13)
print(x.pin)
import pymaa as maa
-maa.init()
x = maa.I2c()
x.address(0x62)
y= " "
#include "aio.h"
%}
+%init %{
+ maa_init();
+%}
+
%rename(get_version) maa_get_version();
const char * maa_get_version();
-%rename(init) maa_init();
-int maa_init();
#### GPIO ####