29 lines
452 B
Python
Raw Normal View History

2021-10-01 00:21:50 +08:00
import PikaStdLib
2021-12-13 21:24:48 +08:00
import PikaStdData
2022-01-24 19:08:33 +08:00
import GTestTask
2021-10-11 19:43:21 +08:00
import PikaMath
2022-04-07 09:19:14 +08:00
import PikaStdDevice
2022-01-28 00:43:09 +08:00
import PikaDebug
2022-04-07 23:06:04 +08:00
import PikaStdData
2022-01-24 19:08:33 +08:00
2022-01-28 00:43:09 +08:00
pkdb = PikaDebug.Debuger()
2022-04-07 23:06:04 +08:00
list = PikaStdData.List()
io =PikaStdDevice.GPIO()
2022-04-11 18:40:52 +08:00
mem = PikaStdLib.MemChecker()
2022-01-24 19:08:33 +08:00
class Test():
x = 1
def hi(self):
print('hi' + str(self.x))
test = Test()
test.hi()
2022-01-25 23:31:21 +08:00
2022-04-11 18:40:52 +08:00
def todo1():
test.hi()
mem.max()
print('hello')
2022-04-11 18:40:52 +08:00
task = GTestTask.Task()
task.call_period_ms(todo1, 500)