summaryrefslogtreecommitdiff
path: root/demos/Arduino
diff options
context:
space:
mode:
authorJorawar Singh2017-07-16 22:17:43 +0530
committerJorawar Singh2017-07-16 22:36:51 +0530
commitd9d92203ea349d5eb44c0edc5565d827322caabe (patch)
tree9bf874443e6e5a8ccd8fba3f5918297d95a194e8 /demos/Arduino
parentce5c0f9d407d533364e9e7adc81e4d338e031383 (diff)
downloadScilab2C_fossee_old-d9d92203ea349d5eb44c0edc5565d827322caabe.tar.gz
Scilab2C_fossee_old-d9d92203ea349d5eb44c0edc5565d827322caabe.tar.bz2
Scilab2C_fossee_old-d9d92203ea349d5eb44c0edc5565d827322caabe.zip
Toolbox merge, RPI demos and structured demos
Diffstat (limited to 'demos/Arduino')
-rw-r--r--demos/Arduino/Arduino.dem.gateway.sce22
-rw-r--r--demos/Arduino/analog_in_out_volt.dem.sce7
-rw-r--r--demos/Arduino/analog_out.dem.sce7
-rw-r--r--demos/Arduino/blink.dem.sce7
-rw-r--r--demos/Arduino/dc_motor.dem.sce7
-rw-r--r--demos/Arduino/digital_in.dem.sce7
-rw-r--r--demos/Arduino/master_write.dem.sce7
7 files changed, 64 insertions, 0 deletions
diff --git a/demos/Arduino/Arduino.dem.gateway.sce b/demos/Arduino/Arduino.dem.gateway.sce
new file mode 100644
index 0000000..417291a
--- /dev/null
+++ b/demos/Arduino/Arduino.dem.gateway.sce
@@ -0,0 +1,22 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Jorawar Singh, Yash Pratap Singh Tomar
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+
+
+subdemolist = ["Arduino blink", "blink.dem.sce";
+ "Arduino digital input", "digital_in.dem.sce";
+ "Arduino analog voltage i/o", "analog_in_out_volt.dem.sce";
+ "Arduino analog output", "analog_out.dem.sce";
+ "Arduino DC motor", "dc_motor.dem.sce";
+ "Arduino Master write", "master_write.dem.sce";
+ ];
+
+global SCI2CHOME;
+subdemolist(:,2) = SCI2CHOME + "/demos/Arduino/"+ subdemolist(:,2);
diff --git a/demos/Arduino/analog_in_out_volt.dem.sce b/demos/Arduino/analog_in_out_volt.dem.sce
new file mode 100644
index 0000000..ca6da61
--- /dev/null
+++ b/demos/Arduino/analog_in_out_volt.dem.sce
@@ -0,0 +1,7 @@
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testArduino/analog_in_check_volt.sci", TMPDIR, SCI2CHOME+"/tests/unit_tests/testArduino", "All", "make" ,"Arduino", "uno");
+
+editor([TMPDIR+"/setup_arduino.cpp";TMPDIR+"/loop_arduino.cpp"]);
diff --git a/demos/Arduino/analog_out.dem.sce b/demos/Arduino/analog_out.dem.sce
new file mode 100644
index 0000000..65a1e27
--- /dev/null
+++ b/demos/Arduino/analog_out.dem.sce
@@ -0,0 +1,7 @@
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testArduino/analog_check.sci", TMPDIR, SCI2CHOME+"/tests/unit_tests/testArduino", "All", "make" ,"Arduino", "uno");
+
+editor([TMPDIR+"/setup_arduino.cpp";TMPDIR+"/loop_arduino.cpp"]);
diff --git a/demos/Arduino/blink.dem.sce b/demos/Arduino/blink.dem.sce
new file mode 100644
index 0000000..b01d3da
--- /dev/null
+++ b/demos/Arduino/blink.dem.sce
@@ -0,0 +1,7 @@
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testArduino/blink_13.sci", TMPDIR, SCI2CHOME+"/tests/unit_tests/testArduino", "All", "make" ,"Arduino", "uno");
+
+editor([TMPDIR+"/setup_arduino.cpp";TMPDIR+"/loop_arduino.cpp"]);
diff --git a/demos/Arduino/dc_motor.dem.sce b/demos/Arduino/dc_motor.dem.sce
new file mode 100644
index 0000000..36c0bad
--- /dev/null
+++ b/demos/Arduino/dc_motor.dem.sce
@@ -0,0 +1,7 @@
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testArduino/board_test_release2.sci", TMPDIR, SCI2CHOME+"/tests/unit_tests/testArduino", "All", "make" ,"Arduino", "uno");
+
+editor([TMPDIR+"/setup_arduino.cpp";TMPDIR+"/loop_arduino.cpp"]);
diff --git a/demos/Arduino/digital_in.dem.sce b/demos/Arduino/digital_in.dem.sce
new file mode 100644
index 0000000..2eb4c3a
--- /dev/null
+++ b/demos/Arduino/digital_in.dem.sce
@@ -0,0 +1,7 @@
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testArduino/digital_in_check.sci", TMPDIR, SCI2CHOME+"/tests/unit_tests/testArduino", "All", "make" ,"Arduino", "uno");
+
+editor([TMPDIR+"/setup_arduino.cpp";TMPDIR+"/loop_arduino.cpp"]);
diff --git a/demos/Arduino/master_write.dem.sce b/demos/Arduino/master_write.dem.sce
new file mode 100644
index 0000000..cdf522d
--- /dev/null
+++ b/demos/Arduino/master_write.dem.sce
@@ -0,0 +1,7 @@
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testArduino/i2c_master.sci", TMPDIR, SCI2CHOME+"/tests/unit_tests/testArduino", "All", "make" ,"Arduino", "uno");
+
+editor([TMPDIR+"/setup_arduino.cpp";TMPDIR+"/loop_arduino.cpp"]);