summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--macros/Scilab-Arduino/cmd_i2c_dev.sci3
-rw-r--r--macros/Scilab-Arduino/cmd_i2c_read.sci2
-rw-r--r--macros/Scilab-Arduino/cmd_i2c_read_register.sci3
-rw-r--r--macros/Scilab-Arduino/cmd_i2c_write.sci2
-rw-r--r--macros/Scilab-Arduino/cmd_i2c_write_register.sci2
-rw-r--r--macros/Scilab-Arduino/i2c_dev.sci3
-rw-r--r--macros/Scilab-Arduino/i2c_read.sci2
-rw-r--r--macros/Scilab-Arduino/i2c_read_register.sci3
-rw-r--r--macros/Scilab-Arduino/i2c_write.sci2
-rw-r--r--macros/Scilab-Arduino/i2c_write_register.sci2
-rw-r--r--macros/Scilab-Arduino/libbin759 -> 810 bytes
-rw-r--r--macros/Scilab-Arduino/names10
-rw-r--r--macros/cb_sci2c_gui.sci3
-rw-r--r--macros/libbin649 -> 576 bytes
-rw-r--r--macros/scilab2c.sci6
15 files changed, 26 insertions, 17 deletions
diff --git a/macros/Scilab-Arduino/cmd_i2c_dev.sci b/macros/Scilab-Arduino/cmd_i2c_dev.sci
new file mode 100644
index 0000000..37854cf
--- /dev/null
+++ b/macros/Scilab-Arduino/cmd_i2c_dev.sci
@@ -0,0 +1,3 @@
+function z = cmd_i2c_dev(address)
+ z = 0
+endfunction
diff --git a/macros/Scilab-Arduino/cmd_i2c_read.sci b/macros/Scilab-Arduino/cmd_i2c_read.sci
new file mode 100644
index 0000000..1edc1aa
--- /dev/null
+++ b/macros/Scilab-Arduino/cmd_i2c_read.sci
@@ -0,0 +1,2 @@
+function y = cmd_i2c_read(address,bytes)
+endfunction
diff --git a/macros/Scilab-Arduino/cmd_i2c_read_register.sci b/macros/Scilab-Arduino/cmd_i2c_read_register.sci
new file mode 100644
index 0000000..f5394a6
--- /dev/null
+++ b/macros/Scilab-Arduino/cmd_i2c_read_register.sci
@@ -0,0 +1,3 @@
+function x = cmd_i2c_read_register(address,reg_adrs)
+ x = 0;
+endfunction
diff --git a/macros/Scilab-Arduino/cmd_i2c_write.sci b/macros/Scilab-Arduino/cmd_i2c_write.sci
new file mode 100644
index 0000000..8ed8eb4
--- /dev/null
+++ b/macros/Scilab-Arduino/cmd_i2c_write.sci
@@ -0,0 +1,2 @@
+function cmd_i2c_write(address,data)
+endfunction
diff --git a/macros/Scilab-Arduino/cmd_i2c_write_register.sci b/macros/Scilab-Arduino/cmd_i2c_write_register.sci
new file mode 100644
index 0000000..02c4839
--- /dev/null
+++ b/macros/Scilab-Arduino/cmd_i2c_write_register.sci
@@ -0,0 +1,2 @@
+function cmd_i2c_write_register(address, reg_adrs, data)
+endfunction
diff --git a/macros/Scilab-Arduino/i2c_dev.sci b/macros/Scilab-Arduino/i2c_dev.sci
deleted file mode 100644
index f86e588..0000000
--- a/macros/Scilab-Arduino/i2c_dev.sci
+++ /dev/null
@@ -1,3 +0,0 @@
-function z = i2c_dev(address)
- z = 0
-endfunction
diff --git a/macros/Scilab-Arduino/i2c_read.sci b/macros/Scilab-Arduino/i2c_read.sci
deleted file mode 100644
index 6916b9c..0000000
--- a/macros/Scilab-Arduino/i2c_read.sci
+++ /dev/null
@@ -1,2 +0,0 @@
-function y = i2c_read(address,bytes)
-endfunction
diff --git a/macros/Scilab-Arduino/i2c_read_register.sci b/macros/Scilab-Arduino/i2c_read_register.sci
deleted file mode 100644
index 51a88ee..0000000
--- a/macros/Scilab-Arduino/i2c_read_register.sci
+++ /dev/null
@@ -1,3 +0,0 @@
-function x = i2c_read_register(address,reg_adrs)
- x = 0;
-endfunction
diff --git a/macros/Scilab-Arduino/i2c_write.sci b/macros/Scilab-Arduino/i2c_write.sci
deleted file mode 100644
index 8dfd070..0000000
--- a/macros/Scilab-Arduino/i2c_write.sci
+++ /dev/null
@@ -1,2 +0,0 @@
-function i2c_write(address,data)
-endfunction
diff --git a/macros/Scilab-Arduino/i2c_write_register.sci b/macros/Scilab-Arduino/i2c_write_register.sci
deleted file mode 100644
index a9b5553..0000000
--- a/macros/Scilab-Arduino/i2c_write_register.sci
+++ /dev/null
@@ -1,2 +0,0 @@
-function i2c_write_register(address, reg_adrs, data)
-endfunction
diff --git a/macros/Scilab-Arduino/lib b/macros/Scilab-Arduino/lib
index 0304cad..a5bf12b 100644
--- a/macros/Scilab-Arduino/lib
+++ b/macros/Scilab-Arduino/lib
Binary files differ
diff --git a/macros/Scilab-Arduino/names b/macros/Scilab-Arduino/names
index c1386c3..8b8d7c4 100644
--- a/macros/Scilab-Arduino/names
+++ b/macros/Scilab-Arduino/names
@@ -4,8 +4,8 @@ GetArduinoSetupFunctions
InsertSetupInList
IsArduinoFunction
IsArduinoSetupFunction
-i2c_dev
-i2c_read
-i2c_read_register
-i2c_write
-i2c_write_register
+cmd_i2c_dev
+cmd_i2c_read
+cmd_i2c_read_register
+cmd_i2c_write
+cmd_i2c_write_register
diff --git a/macros/cb_sci2c_gui.sci b/macros/cb_sci2c_gui.sci
index 9dbe974..7bb0e73 100644
--- a/macros/cb_sci2c_gui.sci
+++ b/macros/cb_sci2c_gui.sci
@@ -180,6 +180,8 @@ elseif get(gcbo, "tag")=="convertbtn" then
Board_name = "lilypad"
elseif get(findobj("tag", "brdnmType"), "value") == 28 then
Board_name = "lilyPadUSB"
+ else
+ Board_name = "uno"
//elseif get(findobj("tag", "brdnmType"), "value") == [1 0 0 0 0 0] then
//Board_name = "none"
@@ -195,6 +197,7 @@ elseif get(gcbo, "tag")=="convertbtn" then
// CCompilerPathStyle = "cygwin";
end
+
// -*- DEBUG ONLY -*-
// mprintf("UserScilabMainFile = {%s}\n", UserScilabMainFile);
diff --git a/macros/lib b/macros/lib
index d818e18..1be60a2 100644
--- a/macros/lib
+++ b/macros/lib
Binary files differ
diff --git a/macros/scilab2c.sci b/macros/scilab2c.sci
index 69d9554..61ac42d 100644
--- a/macros/scilab2c.sci
+++ b/macros/scilab2c.sci
@@ -12,6 +12,7 @@
function scilab2c(varargin)
[lhs, rhs] = argn();
+ disp("YES")
select rhs
//
// scilab2c()
@@ -35,6 +36,7 @@ function scilab2c(varargin)
RunMode = 'All';
BuildTool = getNativeBuildTool();
Target = "StandAlone"
+ //Board_name = "uno"
//
// scilab2c(UserScilabMainFile, CCodeOutputDir, UserSciFilesPaths)
//
@@ -55,6 +57,7 @@ function scilab2c(varargin)
RunMode = "All";
BuildTool = getNativeBuildTool();
Target = "StandAlone"
+ //Board_name = "uno"
//
// scilab2c(UserScilabMainFile, CCodeOutputDir, UserSciFilesPaths, RunMode)
//
@@ -79,6 +82,7 @@ function scilab2c(varargin)
RunMode = varargin(4);
BuildTool = getNativeBuildTool();
Target = "StandAlone"
+ //Board_name = "uno"
case 5
for i = 1:4
if typeof(varargin(i)) <> "string"
@@ -104,6 +108,7 @@ function scilab2c(varargin)
RunMode = varargin(4);
BuildTool = varargin(5);
Target = "StandAlone"
+ //Board_name = "uno"
case 6
for i = 1:4
if typeof(varargin(i)) <> "string"
@@ -133,6 +138,7 @@ function scilab2c(varargin)
RunMode = varargin(4);
BuildTool = varargin(5);
Target = varargin(6);
+ //Board_name = "uno";
case 7
for i = 1:4
if typeof(varargin(i)) <> "string"