LightSensor1

objectPage http://www.yama-lab.org/fwb4pi/index.php?LED_and_Button_ex01 or http://www.yama-lab.org/fwb4pi/index.php?LED_and_Button_ex01
device yamaRasPiDp9_1 or yamaRasPiDp9_2 start after no write for 10 min.
command: set readInterval=150000
command: set execInterval=0
command: program LED_and_Button_ex01
program: '
program: ' init gpio
program: ex("pycon", "gpio setup 23 change")
program: 'ex("pycon", "gpio setup 23 in")
program: ex("pycon", "gpio setup 18 out")
program: '
program: ' 
program: 'ex("service","clear sendBuffer")
program: ex("pycon", "gpio output 18 1")
program: 'v=ex("pycon", "gpio input 23")
program: 'ex("service","putSendBuffer device=button, Date="+ex("service","getCurrentDate.")+", v="+v);
program: delay(60000)
program: ex("pycon", "gpio output 18 0")
program: ex("pycon", "gpio cleanup")
program: ex("service","sendResults.")
command: end LED_and_Button_ex01
command: run LED_and_Button_ex01
result:
>gpio setup 23 change
>gpio setup 18 out
gpio output 18 1
>gpio output 18 0
>gpio setup 23 change
>gpio setup 18 out
>gpio output 18 1
return change,pin=23,Date=2022/07/03/ 23:04:16,v=0
return change,pin=23,Date=2022/07/03/ 23:04:16,v=1
>gpio output 18 0
>gpio cleanup
>gpio setup 23 change
>gpio setup 18 out
>gpio output 18 1
>gpio output 18 0
>gpio cleanup
>gpio setup 23 change
>gpio setup 18 out
>gpio output 18 1
>gpio output 18 0
>gpio cleanup
>gpio setup 23 change
>gpio setup 18 out
gpio output 18 1
>gpio output 18 0
>gpio cleanup
>gpio setup 23 change
>gpio setup 18 out
>gpio output 18 1
>gpio output 18 0
>gpio cleanup
>gpio setup 23 change
>gpio setup 18 out
gpio output 18 1
>gpio output 18 0
>gpio cleanup
>gpio setup 23 change
>gpio setup 18 out
>gpio output 18 1
return change,pin=23,Date=2022/07/03/ 23:18:47,v=0
return change,pin=23,Date=2022/07/03/ 23:18:48,v=1
return change,pin=23,Date=2022/07/03/ 23:19:28,v=0
return change,pin=23,Date=2022/07/03/ 23:19:29,v=1
>gpio output 18 0
>gpio cleanup
>gpio setup 23 change
>gpio setup 18 out
>gpio output 18 1
>gpio output 18 0
>gpio cleanup
>gpio setup 23 change
>gpio setup 18 out
gpio output 18 1
>gpio output 18 0
>gpio cleanup
>gpio setup 23 change
>gpio setup 18 out
>gpio output 18 1
>gpio output 18 0
>gpio cleanup
>gpio setup 23 change
>gpio setup 18 out
>gpio output 18 1
currentDevice="yamaRasPiDp1_1",Date=2022/7/3/ 23:29:44

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