2021-11-16 21:41:57 +08:00
|
|
|
from PikaObj import *
|
2021-11-16 21:29:27 +08:00
|
|
|
import Device
|
2021-11-16 21:41:57 +08:00
|
|
|
import PikaStdLib
|
2021-10-01 00:21:50 +08:00
|
|
|
|
2022-01-26 16:18:31 +08:00
|
|
|
led = Device.LED()
|
|
|
|
uart = Device.Uart()
|
2021-10-01 00:21:50 +08:00
|
|
|
mem = PikaStdLib.MemChecker()
|
2021-11-16 21:29:27 +08:00
|
|
|
|
2022-01-26 16:18:31 +08:00
|
|
|
print('hello wrold')
|
|
|
|
uart.setName('com1')
|
|
|
|
uart.send('My name is:')
|
|
|
|
uart.printName()
|
2021-10-01 00:21:50 +08:00
|
|
|
print('mem used max:')
|
|
|
|
mem.max()
|
2021-11-16 21:29:27 +08:00
|
|
|
print('mem used now:')
|
2022-01-26 16:18:31 +08:00
|
|
|
mem.now()
|