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: red = Pin(16, Pin.OUT)
py: sw01 = Pin(14, Pin.IN, Pin.PULL_UP)
py: led.on()
py: time.sleep(1.5)
py: v=sw01.value()
py: if v==0:
py:    red.on()
py:    time.sleep(2.0)
py:    red.off()
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/24 14:35:24, v=1
device=sw, Date=2024/02/24 14:35:39, v=1
device=sw, Date=2024/02/24 14:35:54, v=1
device=sw, Date=2024/02/24 14:36:09, v=1
device=sw, Date=2024/02/24 14:36:24, v=1
device=sw, Date=2024/02/24 14:36:39, v=1
device=sw, Date=2024/02/24 14:36:54, v=1
device=sw, Date=2024/02/24 14:37:09, v=1
device=sw, Date=2024/02/24 14:37:24, v=1
device=sw, Date=2024/02/24 14:37:40, v=1
current_device="yama_pico_0000_0000_0000_0001". Date=2024/02/24 14:37:44

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