mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
24 lines
602 B
C
24 lines
602 B
C
/* ******************************** */
|
|
/* Warning! Don't modify this file! */
|
|
/* ******************************** */
|
|
#include "Device_LED.h"
|
|
#include "TinyObj.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "BaseObj.h"
|
|
|
|
void Device_LED_offMethod(PikaObj *self, Args *args){
|
|
Device_LED_off(self);
|
|
}
|
|
|
|
void Device_LED_onMethod(PikaObj *self, Args *args){
|
|
Device_LED_on(self);
|
|
}
|
|
|
|
PikaObj *New_Device_LED(Args *args){
|
|
PikaObj *self = New_TinyObj(args);
|
|
class_defineMethod(self, "off()", Device_LED_offMethod);
|
|
class_defineMethod(self, "on()", Device_LED_onMethod);
|
|
return self;
|
|
}
|