summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/testArduino/blink_13.sci
diff options
context:
space:
mode:
authorBrijeshcr2017-07-10 12:41:21 +0530
committerGitHub2017-07-10 12:41:21 +0530
commit2e9eadc75e51483c41a30544496b4e05c0cf7c41 (patch)
tree603cb29022e575db10ab26fbb75a5cc5bdf01ad8 /2.3-1/tests/unit_tests/testArduino/blink_13.sci
parent26ab8620e89571314bc1a828bd9aca3d288eaede (diff)
parent09d11751736a5812ebfc22cd488f51de02e5375a (diff)
downloadScilab2C-2e9eadc75e51483c41a30544496b4e05c0cf7c41.tar.gz
Scilab2C-2e9eadc75e51483c41a30544496b4e05c0cf7c41.tar.bz2
Scilab2C-2e9eadc75e51483c41a30544496b4e05c0cf7c41.zip
Merge pull request #14 from yash1112/master
Arduino toolbox error Resolved
Diffstat (limited to '2.3-1/tests/unit_tests/testArduino/blink_13.sci')
-rw-r--r--2.3-1/tests/unit_tests/testArduino/blink_13.sci6
1 files changed, 6 insertions, 0 deletions
diff --git a/2.3-1/tests/unit_tests/testArduino/blink_13.sci b/2.3-1/tests/unit_tests/testArduino/blink_13.sci
new file mode 100644
index 00000000..37dc93fd
--- /dev/null
+++ b/2.3-1/tests/unit_tests/testArduino/blink_13.sci
@@ -0,0 +1,6 @@
+function blink_13()
+ cmd_digital_out(1,13,1) //--To turn on the LED on pin no. 13
+ sleep(1000) //---delay of 1 second
+ cmd_digital_out(1,13,0) //--To turn on the LED off pin no. 13
+ sleep(1000) //---delay of 1 second
+endfunction