mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
25 lines
359 B
Python
25 lines
359 B
Python
import PikaStdLib
|
|
import CH582
|
|
|
|
io1 = CH582.GPIO()
|
|
time = CH582.Time()
|
|
|
|
io1.init()
|
|
io1.setPin('PB8')
|
|
io1.setMode('out')
|
|
io1.enable()
|
|
io1.low()
|
|
|
|
print('hello PikaScript!')
|
|
mem = PikaStdLib.MemChecker()
|
|
print('mem used max:')
|
|
mem.max()
|
|
|
|
while True:
|
|
io1.low()
|
|
print("low")
|
|
time.sleep_ms(1000)
|
|
io1.high()
|
|
print("high")
|
|
time.sleep_ms(1000)
|