LED_and_Button_ex01
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
[[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=65000
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 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
>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
>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
>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
currentDevice="yamaRasPiDp1_1",Date=2022/7/7/ 15:55:43
終了行:
[[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=65000
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 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
>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
>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
>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
currentDevice="yamaRasPiDp1_1",Date=2022/7/7/ 15:55:43
ページ名: