mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
15 lines
310 B
C
15 lines
310 B
C
#include "TemplateDevice_Time.h"
|
|
|
|
void TemplateDevice_Time_sleep_ms(PikaObj *self, int ms){
|
|
|
|
}
|
|
void TemplateDevice_Time_sleep_s(PikaObj *self, int s){
|
|
|
|
}
|
|
|
|
static volatile uint64_t tick_ms = 0;
|
|
void TemplateDevice_Time_platformGetTick(PikaObj *self){
|
|
tick_ms += 50;
|
|
obj_setInt(self, "tick", tick_ms);
|
|
}
|