From d9d92203ea349d5eb44c0edc5565d827322caabe 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 --- demos/Arduino/Arduino.dem.gateway.sce | 22 ++++++++++++++++++++++ demos/Arduino/analog_in_out_volt.dem.sce | 7 +++++++ demos/Arduino/analog_out.dem.sce | 7 +++++++ demos/Arduino/blink.dem.sce | 7 +++++++ demos/Arduino/dc_motor.dem.sce | 7 +++++++ demos/Arduino/digital_in.dem.sce | 7 +++++++ demos/Arduino/master_write.dem.sce | 7 +++++++ 7 files changed, 64 insertions(+) create mode 100644 demos/Arduino/Arduino.dem.gateway.sce create mode 100644 demos/Arduino/analog_in_out_volt.dem.sce create mode 100644 demos/Arduino/analog_out.dem.sce create mode 100644 demos/Arduino/blink.dem.sce create mode 100644 demos/Arduino/dc_motor.dem.sce create mode 100644 demos/Arduino/digital_in.dem.sce create mode 100644 demos/Arduino/master_write.dem.sce (limited to 'demos/Arduino') 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"]); -- cgit