object_page http://www.yama-lab.org/fwb4pi/index.php?work20240201-01 or   http://www.yama-lab.org/fwb4pi/index.php?work20240201-01
device yamaRasPiDp9_1 or yamaRasPiDp9_2 start after no write for 10 min.
command: set read_interval=15000
command: set exec_interval=0
command: set report_length=10
command: py test
py: #
py: from machine import Pin
py: import time
py: led = Pin('LED', Pin.OUT)
py: sw01 = Pin(14, Pin.IN, Pin.PULL_UP)
py: led.on()
py: time.sleep(1.5)
py: v=sw01.value()
py: led.off()
py: line="device=sw, Date="+self.Pico_Time.get_now()+", v="+str(v)
py: self.write_line(line)
py: self.send_result()
command: end test
command: run test
result:
device=sw, Date=2024/02/05 14:43:49, v=0
device=sw, Date=2024/02/05 14:44:04, v=0
device=sw, Date=2024/02/05 14:44:19, v=1
device=sw, Date=2024/02/05 14:48:42, v=1
device=sw, Date=2024/02/05 14:49:47, v=1
device=sw, Date=2024/02/05 14:50:02, v=1
device=sw, Date=2024/02/05 14:50:17, v=0
device=sw, Date=2024/02/05 14:50:32, v=0
device=sw, Date=2024/02/05 14:50:48, v=1
device=sw, Date=2024/02/05 14:51:03, v=1
current_device="yama_pico_0000_0000_0000_0001". Date=2024/02/05 14:51:07

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS