diff options
author | siddhu8990 | 2015-12-17 14:48:36 +0530 |
---|---|---|
committer | siddhu8990 | 2015-12-17 14:48:36 +0530 |
commit | 02f2862023bb34146f6a0a96c2795bebe97e7c47 (patch) | |
tree | 9d2075243dcba13e417edb0929846f49b03aeac3 /2.3-1/macros/runsci2c.sci | |
parent | eac39cdc77ad5fdaf7b245cbce5c92f105ac75bf (diff) | |
download | Scilab2C-02f2862023bb34146f6a0a96c2795bebe97e7c47.tar.gz Scilab2C-02f2862023bb34146f6a0a96c2795bebe97e7c47.tar.bz2 Scilab2C-02f2862023bb34146f6a0a96c2795bebe97e7c47.zip |
Code generation for Arduino changed. DC motor added to Arduino
Diffstat (limited to '2.3-1/macros/runsci2c.sci')
-rw-r--r-- | 2.3-1/macros/runsci2c.sci | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/2.3-1/macros/runsci2c.sci b/2.3-1/macros/runsci2c.sci index 91587031..4620705c 100644 --- a/2.3-1/macros/runsci2c.sci +++ b/2.3-1/macros/runsci2c.sci @@ -133,12 +133,15 @@ end //default folder, else generate makefile for standalone c code
if (OutFormat == 'Arduino')
+
+ GenerateSetupFunction(FileInfo);
mkdir(SCI2COutputPath+"/arduino/");
mkdir(SCI2COutputPath+"/arduino/sci2c_arduino");
//Copy arduino makefile
arduinoFiles = SCI2CHOME + "/" + getArduinoFiles();
PrintStepInfo('Copying arduino files', FileInfo.GeneralReport,'both');
- for i = 1:size(arduinoFiles, "*")
+ copyfile(arduinoFiles(1), SCI2COutputPath);
+ for i = 2:size(arduinoFiles, "*")
// DEBUG only
//disp("Copying "+arduinoFiles(i)+" in "+SCI2COutputPath+"/arduino/sci2carduino");
copyfile(arduinoFiles(i), SCI2COutputPath+"/arduino/sci2c_arduino/");
|