From 5120257de94783e808523343effda00243ad6611 Mon Sep 17 00:00:00 2001 From: Jorawar Singh Date: Sun, 16 Jul 2017 22:17:43 +0530 Subject: Toolbox merge, RPI demos and structured demos --- 2.3-1/demos/Arduino/Arduino.dem.gateway.sce | 22 ++++++++++++++++++++++ 2.3-1/demos/Arduino/analog_in_out_volt.dem.sce | 7 +++++++ 2.3-1/demos/Arduino/analog_out.dem.sce | 7 +++++++ 2.3-1/demos/Arduino/blink.dem.sce | 7 +++++++ 2.3-1/demos/Arduino/dc_motor.dem.sce | 7 +++++++ 2.3-1/demos/Arduino/digital_in.dem.sce | 7 +++++++ 2.3-1/demos/Arduino/master_write.dem.sce | 7 +++++++ 7 files changed, 64 insertions(+) create mode 100644 2.3-1/demos/Arduino/Arduino.dem.gateway.sce create mode 100644 2.3-1/demos/Arduino/analog_in_out_volt.dem.sce create mode 100644 2.3-1/demos/Arduino/analog_out.dem.sce create mode 100644 2.3-1/demos/Arduino/blink.dem.sce create mode 100644 2.3-1/demos/Arduino/dc_motor.dem.sce create mode 100644 2.3-1/demos/Arduino/digital_in.dem.sce create mode 100644 2.3-1/demos/Arduino/master_write.dem.sce (limited to '2.3-1/demos/Arduino') diff --git a/2.3-1/demos/Arduino/Arduino.dem.gateway.sce b/2.3-1/demos/Arduino/Arduino.dem.gateway.sce new file mode 100644 index 00000000..417291ac --- /dev/null +++ b/2.3-1/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/2.3-1/demos/Arduino/analog_in_out_volt.dem.sce b/2.3-1/demos/Arduino/analog_in_out_volt.dem.sce new file mode 100644 index 00000000..ca6da611 --- /dev/null +++ b/2.3-1/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/2.3-1/demos/Arduino/analog_out.dem.sce b/2.3-1/demos/Arduino/analog_out.dem.sce new file mode 100644 index 00000000..65a1e279 --- /dev/null +++ b/2.3-1/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/2.3-1/demos/Arduino/blink.dem.sce b/2.3-1/demos/Arduino/blink.dem.sce new file mode 100644 index 00000000..b01d3dae --- /dev/null +++ b/2.3-1/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/2.3-1/demos/Arduino/dc_motor.dem.sce b/2.3-1/demos/Arduino/dc_motor.dem.sce new file mode 100644 index 00000000..36c0badd --- /dev/null +++ b/2.3-1/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/2.3-1/demos/Arduino/digital_in.dem.sce b/2.3-1/demos/Arduino/digital_in.dem.sce new file mode 100644 index 00000000..2eb4c3a0 --- /dev/null +++ b/2.3-1/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/2.3-1/demos/Arduino/master_write.dem.sce b/2.3-1/demos/Arduino/master_write.dem.sce new file mode 100644 index 00000000..cdf522db --- /dev/null +++ b/2.3-1/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"]); -- cgit