pikapython/package/TemplateDevice/TemplateDevice_Time.c

15 lines
310 B
C
Raw Normal View History

2022-05-24 14:13:31 +08:00
#include "TemplateDevice_Time.h"
void TemplateDevice_Time_sleep_ms(PikaObj *self, int ms){
}
void TemplateDevice_Time_sleep_s(PikaObj *self, int s){
}
2022-06-04 16:28:58 +08:00
static volatile uint64_t tick_ms = 0;
void TemplateDevice_Time_platformGetTick(PikaObj *self){
tick_ms += 50;
obj_setInt(self, "tick", tick_ms);
}