Files
OpenBK7231T_App/docs/json/scriptExamples.json
2023-03-07 12:30:54 +01:00

39 lines
1.2 KiB
JSON

[
{
"title": "Loop demo",
"description": "Features a 'goto' script command (for use within script) and, obviously, a label.",
"requirements": [
"channel 1 - output relay"
],
"file": "scripts/loop_with_goto_and_delays.bat"
},
{
"title": "Loop & if demo",
"description": "This example shows how you can use a dummy channel as a variable to create a loop",
"requirements": [
"channel 1 - output relay",
"channel 11 - loop variable counter"
],
"file": "scripts/channel_as_loop_counter_and_if.bat"
},
{
"title": "Thread cancelation demo and exclude self demo",
"description": "This example shows how you can create a script thread with an unique ID and use this ID to cancel the thread later",
"requirements": [
"channel 1 - output relay",
"pin 8 - button",
"pin 9 - button"
],
"file": "scripts/thread_cancelation_and_exclude_self_demo.bat"
},
{
"title": "Using channel value as a variable demo",
"description": "",
"requirements": [
"channel 1 - output relay",
"channel 11 - you may use it as ADC, or just use setChannel 11 100 or setChannel 11 500 in console to change delay"
],
"file": "scripts/using_channel_as_variable.bat"
}
]