update StdDevice, use 'self' arg

This commit is contained in:
lyon1998 2022-04-07 23:01:59 +08:00
parent d18bc16aae
commit cc6cb8afcc
6 changed files with 35 additions and 35 deletions

View File

@ -1,9 +1,9 @@
from PikaObj import *
class Debuger(TinyObj):
def __init__():
def __init__(self):
pass
def set_trace():
def set_trace(self):
pass

View File

@ -5,33 +5,33 @@ import PikaStdData
class Task(TinyObj):
calls = PikaStdData.List()
def __init__():
def __init__(self):
pass
# regist a function to be called always
def call_always(fun_todo: any):
def call_always(self, fun_todo: any):
pass
# regist a function to be called when fun_when() return 'True'
def call_when(fun_todo: any, fun_when: any):
def call_when(self, fun_todo: any, fun_when: any):
pass
# regist a function to be called periodically
def call_period_ms(fun_todo: any, period_ms: int):
def call_period_ms(self, fun_todo: any, period_ms: int):
pass
# run all registed function once
def run_once():
def run_once(self):
pass
# run all registed function forever
def run_forever():
def run_forever(self):
pass
# run all registed function until time is up
def run_until_ms(until_ms: int):
def run_until_ms(self, until_ms: int):
pass
# need be overried to supply the system tick
def platformGetTick():
def platformGetTick(self):
pass

View File

@ -3,5 +3,5 @@ import PikaStdTask
class Task(PikaStdTask.Task):
def platformGetTick():
def platformGetTick(self):
pass

View File

@ -1,9 +1,9 @@
from PikaObj import *
class Debuger(TinyObj):
def __init__():
def __init__(self):
pass
def set_trace():
def set_trace(self):
pass

View File

@ -1,41 +1,41 @@
from PikaObj import *
class Operator(TinyObj):
def plusInt(num1: int, num2: int) -> int:
def plusInt(self, num1: int, num2: int) -> int:
pass
def plusFloat(num1: float, num2: float) -> float:
def plusFloat(self, num1: float, num2: float) -> float:
pass
def minusInt(num1: int, num2: int) -> int:
def minusInt(self, num1: int, num2: int) -> int:
pass
def minusFloat(num1: float, num2: float) -> float:
def minusFloat(self, num1: float, num2: float) -> float:
pass
def equalInt(num1: int, num2: int) -> int:
def equalInt(self, num1: int, num2: int) -> int:
pass
def equalFloat(num1: float, num2: float) -> int:
def equalFloat(self, num1: float, num2: float) -> int:
pass
def graterThanInt(num1: int, num2: int) -> int:
def graterThanInt(self, num1: int, num2: int) -> int:
pass
def graterThanFloat(num1: float, num2: float) -> int:
def graterThanFloat(self, num1: float, num2: float) -> int:
pass
def lessThanInt(num1: int, num2: int) -> int:
def lessThanInt(self, num1: int, num2: int) -> int:
pass
def lessThanFloat(num1: float, num2: float) -> int:
def lessThanFloat(self, num1: float, num2: float) -> int:
pass
def AND(flag1: int, flag2: int) -> int:
def AND(self, flag1: int, flag2: int) -> int:
pass
def OR(flag1: int, flag2: int) -> int:
def OR(self, flag1: int, flag2: int) -> int:
pass
def NOT(flag: int) -> int:
def NOT(self, flag: int) -> int:
pass

View File

@ -5,33 +5,33 @@ import PikaStdData
class Task(TinyObj):
calls = PikaStdData.List()
def __init__():
def __init__(self):
pass
# regist a function to be called always
def call_always(fun_todo: any):
def call_always(self, fun_todo: any):
pass
# regist a function to be called when fun_when() return 'True'
def call_when(fun_todo: any, fun_when: any):
def call_when(self, fun_todo: any, fun_when: any):
pass
# regist a function to be called periodically
def call_period_ms(fun_todo: any, period_ms: int):
def call_period_ms(self, fun_todo: any, period_ms: int):
pass
# run all registed function once
def run_once():
def run_once(self):
pass
# run all registed function forever
def run_forever():
def run_forever(self):
pass
# run all registed function until time is up
def run_until_ms(until_ms: int):
def run_until_ms(self, until_ms: int):
pass
# need be overried to supply the system tick
def platformGetTick():
def platformGetTick(self):
pass