summaryrefslogtreecommitdiff
path: root/tests/unit_tests/testArduino/digital_in_check.sci
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit_tests/testArduino/digital_in_check.sci')
-rw-r--r--tests/unit_tests/testArduino/digital_in_check.sci10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/unit_tests/testArduino/digital_in_check.sci b/tests/unit_tests/testArduino/digital_in_check.sci
new file mode 100644
index 0000000..4dfbeb6
--- /dev/null
+++ b/tests/unit_tests/testArduino/digital_in_check.sci
@@ -0,0 +1,10 @@
+function digital_in_check()
+ a=cmd_digital_in(1,7)
+ if a==1 then
+ cmd_digital_out(1,13,1)
+ cmd_digital_out(1,9,0)
+ else
+ cmd_digital_out(1,9,1)
+ cmd_digital_out(1,13,0)
+ end
+endfunction