mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
27 lines
679 B
C
27 lines
679 B
C
/* ******************************** */
|
|
/* Warning! Don't modify this file! */
|
|
/* ******************************** */
|
|
#include "Device.h"
|
|
#include "TinyObj.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "BaseObj.h"
|
|
|
|
void Device_LEDMethod(PikaObj *self, Args *args){
|
|
Arg * res = Device_LED(self);
|
|
method_returnArg(args, res);
|
|
}
|
|
|
|
void Device_UartMethod(PikaObj *self, Args *args){
|
|
Arg * res = Device_Uart(self);
|
|
method_returnArg(args, res);
|
|
}
|
|
|
|
PikaObj *New_Device(Args *args){
|
|
PikaObj *self = New_TinyObj(args);
|
|
class_defineMethod(self, "LED()->any", Device_LEDMethod);
|
|
class_defineMethod(self, "Uart()->any", Device_UartMethod);
|
|
return self;
|
|
}
|
|
|