mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-02-05 17:28:23 +08:00
16 lines
221 B
Python
16 lines
221 B
Python
import PikaStdDevice as std
|
|
print('hello pikascript')
|
|
|
|
io = std.GPIO()
|
|
io.setPin('P4')
|
|
io.setMode('in')
|
|
io.enable()
|
|
|
|
def cb1(signal):
|
|
print('cb1', signal)
|
|
|
|
io.setCallBack(cb1, io.SIGNAL_FALLING)
|
|
|
|
while True:
|
|
pass
|