work20240131
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=30000
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/02 20:37:06, v=0
device=sw, Date=2024/02/02 20:37:36, v=0
device=sw, Date=2024/02/02 20:38:06, v=1
device=sw, Date=2024/02/02 20:38:36, v=1
device=sw, Date=2024/02/02 20:39:06, v=1
device=sw, Date=2024/02/02 20:39:36, v=1
device=sw, Date=2024/02/02 20:40:06, v=1
device=sw, Date=2024/02/02 20:40:36, v=1
device=sw, Date=2024/02/02 20:41:07, v=1
device=sw, Date=2024/02/02 20:41:36, v=1
current_device="yama_pico_0000_0000_0000_0001". Date=2024/02/02 20:41:38