summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/testArduino/digital_in_check.sci
diff options
context:
space:
mode:
authoryash11122017-07-10 17:08:48 +0530
committeryash11122017-07-10 17:08:48 +0530
commit09d11751736a5812ebfc22cd488f51de02e5375a (patch)
tree603cb29022e575db10ab26fbb75a5cc5bdf01ad8 /2.3-1/tests/unit_tests/testArduino/digital_in_check.sci
parent26ab8620e89571314bc1a828bd9aca3d288eaede (diff)
downloadScilab2C-09d11751736a5812ebfc22cd488f51de02e5375a.tar.gz
Scilab2C-09d11751736a5812ebfc22cd488f51de02e5375a.tar.bz2
Scilab2C-09d11751736a5812ebfc22cd488f51de02e5375a.zip
Arduino toolbox error Resolved
Diffstat (limited to '2.3-1/tests/unit_tests/testArduino/digital_in_check.sci')
-rw-r--r--2.3-1/tests/unit_tests/testArduino/digital_in_check.sci10
1 files changed, 10 insertions, 0 deletions
diff --git a/2.3-1/tests/unit_tests/testArduino/digital_in_check.sci b/2.3-1/tests/unit_tests/testArduino/digital_in_check.sci
new file mode 100644
index 00000000..4dfbeb6e
--- /dev/null
+++ b/2.3-1/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