mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
update StdDevice, use 'self' arg
This commit is contained in:
parent
d18bc16aae
commit
cc6cb8afcc
@ -1,9 +1,9 @@
|
|||||||
from PikaObj import *
|
from PikaObj import *
|
||||||
|
|
||||||
class Debuger(TinyObj):
|
class Debuger(TinyObj):
|
||||||
def __init__():
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def set_trace():
|
def set_trace(self):
|
||||||
pass
|
pass
|
||||||
|
|
@ -5,33 +5,33 @@ import PikaStdData
|
|||||||
class Task(TinyObj):
|
class Task(TinyObj):
|
||||||
calls = PikaStdData.List()
|
calls = PikaStdData.List()
|
||||||
|
|
||||||
def __init__():
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# regist a function to be called always
|
# regist a function to be called always
|
||||||
def call_always(fun_todo: any):
|
def call_always(self, fun_todo: any):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# regist a function to be called when fun_when() return 'True'
|
# 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
|
pass
|
||||||
|
|
||||||
# regist a function to be called periodically
|
# 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
|
pass
|
||||||
|
|
||||||
# run all registed function once
|
# run all registed function once
|
||||||
def run_once():
|
def run_once(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# run all registed function forever
|
# run all registed function forever
|
||||||
def run_forever():
|
def run_forever(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# run all registed function until time is up
|
# run all registed function until time is up
|
||||||
def run_until_ms(until_ms: int):
|
def run_until_ms(self, until_ms: int):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# need be overried to supply the system tick
|
# need be overried to supply the system tick
|
||||||
def platformGetTick():
|
def platformGetTick(self):
|
||||||
pass
|
pass
|
||||||
|
@ -3,5 +3,5 @@ import PikaStdTask
|
|||||||
|
|
||||||
|
|
||||||
class Task(PikaStdTask.Task):
|
class Task(PikaStdTask.Task):
|
||||||
def platformGetTick():
|
def platformGetTick(self):
|
||||||
pass
|
pass
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
from PikaObj import *
|
from PikaObj import *
|
||||||
|
|
||||||
class Debuger(TinyObj):
|
class Debuger(TinyObj):
|
||||||
def __init__():
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def set_trace():
|
def set_trace(self):
|
||||||
pass
|
pass
|
||||||
|
|
@ -1,41 +1,41 @@
|
|||||||
from PikaObj import *
|
from PikaObj import *
|
||||||
|
|
||||||
class Operator(TinyObj):
|
class Operator(TinyObj):
|
||||||
def plusInt(num1: int, num2: int) -> int:
|
def plusInt(self, num1: int, num2: int) -> int:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def plusFloat(num1: float, num2: float) -> float:
|
def plusFloat(self, num1: float, num2: float) -> float:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def minusInt(num1: int, num2: int) -> int:
|
def minusInt(self, num1: int, num2: int) -> int:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def minusFloat(num1: float, num2: float) -> float:
|
def minusFloat(self, num1: float, num2: float) -> float:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def equalInt(num1: int, num2: int) -> int:
|
def equalInt(self, num1: int, num2: int) -> int:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def equalFloat(num1: float, num2: float) -> int:
|
def equalFloat(self, num1: float, num2: float) -> int:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def graterThanInt(num1: int, num2: int) -> int:
|
def graterThanInt(self, num1: int, num2: int) -> int:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def graterThanFloat(num1: float, num2: float) -> int:
|
def graterThanFloat(self, num1: float, num2: float) -> int:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def lessThanInt(num1: int, num2: int) -> int:
|
def lessThanInt(self, num1: int, num2: int) -> int:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def lessThanFloat(num1: float, num2: float) -> int:
|
def lessThanFloat(self, num1: float, num2: float) -> int:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def AND(flag1: int, flag2: int) -> int:
|
def AND(self, flag1: int, flag2: int) -> int:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def OR(flag1: int, flag2: int) -> int:
|
def OR(self, flag1: int, flag2: int) -> int:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def NOT(flag: int) -> int:
|
def NOT(self, flag: int) -> int:
|
||||||
pass
|
pass
|
||||||
|
@ -5,33 +5,33 @@ import PikaStdData
|
|||||||
class Task(TinyObj):
|
class Task(TinyObj):
|
||||||
calls = PikaStdData.List()
|
calls = PikaStdData.List()
|
||||||
|
|
||||||
def __init__():
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# regist a function to be called always
|
# regist a function to be called always
|
||||||
def call_always(fun_todo: any):
|
def call_always(self, fun_todo: any):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# regist a function to be called when fun_when() return 'True'
|
# 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
|
pass
|
||||||
|
|
||||||
# regist a function to be called periodically
|
# 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
|
pass
|
||||||
|
|
||||||
# run all registed function once
|
# run all registed function once
|
||||||
def run_once():
|
def run_once(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# run all registed function forever
|
# run all registed function forever
|
||||||
def run_forever():
|
def run_forever(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# run all registed function until time is up
|
# run all registed function until time is up
|
||||||
def run_until_ms(until_ms: int):
|
def run_until_ms(self, until_ms: int):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# need be overried to supply the system tick
|
# need be overried to supply the system tick
|
||||||
def platformGetTick():
|
def platformGetTick(self):
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user