summaryrefslogtreecommitdiff
path: root/macros/Scilab-Arduino
diff options
context:
space:
mode:
authoryash11122017-06-19 05:40:46 +0530
committeryash11122017-06-19 05:40:46 +0530
commit369c257b9ae0320621b43ca75b38ff66cc13f37b (patch)
treeb100ab94e7ea15a310be05ee8b647c43c2317fb7 /macros/Scilab-Arduino
parentb33afdb2311fbe8aad4c5c614c6098585fe2d279 (diff)
downloadScilab2C_fossee_old-369c257b9ae0320621b43ca75b38ff66cc13f37b.tar.gz
Scilab2C_fossee_old-369c257b9ae0320621b43ca75b38ff66cc13f37b.tar.bz2
Scilab2C_fossee_old-369c257b9ae0320621b43ca75b38ff66cc13f37b.zip
1.3 new scilab-arduino functions added2. all functions have been tested on hardware 3. 5 i2c library functions added 4. Now generates code for 27 Boards(arduino and lilypad). 5. New GUI
Diffstat (limited to 'macros/Scilab-Arduino')
-rw-r--r--macros/Scilab-Arduino/GenerateSetupFunction.binbin0 -> 6136 bytes
-rw-r--r--macros/Scilab-Arduino/GetArduinoFunctions.binbin0 -> 2156 bytes
-rw-r--r--macros/Scilab-Arduino/GetArduinoFunctions.sci3
-rw-r--r--macros/Scilab-Arduino/GetArduinoSetupFunctions.binbin0 -> 1700 bytes
-rw-r--r--macros/Scilab-Arduino/GetArduinoSetupFunctions.sci4
-rw-r--r--macros/Scilab-Arduino/InsertSetupInList.binbin0 -> 8832 bytes
-rw-r--r--macros/Scilab-Arduino/IsArduinoFunction.binbin0 -> 2664 bytes
-rw-r--r--macros/Scilab-Arduino/IsArduinoSetupFunction.binbin0 -> 2852 bytes
-rw-r--r--macros/Scilab-Arduino/IsArduinoSetupFunction.sci2
-rw-r--r--macros/Scilab-Arduino/i2c_dev.binbin0 -> 160 bytes
-rw-r--r--macros/Scilab-Arduino/i2c_dev.sci3
-rw-r--r--macros/Scilab-Arduino/i2c_read.binbin0 -> 128 bytes
-rw-r--r--macros/Scilab-Arduino/i2c_read.sci2
-rw-r--r--macros/Scilab-Arduino/i2c_read_register.binbin0 -> 184 bytes
-rw-r--r--macros/Scilab-Arduino/i2c_read_register.sci3
-rw-r--r--macros/Scilab-Arduino/i2c_write.binbin0 -> 104 bytes
-rw-r--r--macros/Scilab-Arduino/i2c_write.sci2
-rw-r--r--macros/Scilab-Arduino/i2c_write_register.binbin0 -> 128 bytes
-rw-r--r--macros/Scilab-Arduino/i2c_write_register.sci2
-rw-r--r--macros/Scilab-Arduino/libbin759 -> 728 bytes
-rw-r--r--macros/Scilab-Arduino/names5
21 files changed, 24 insertions, 2 deletions
diff --git a/macros/Scilab-Arduino/GenerateSetupFunction.bin b/macros/Scilab-Arduino/GenerateSetupFunction.bin
new file mode 100644
index 0000000..0051630
--- /dev/null
+++ b/macros/Scilab-Arduino/GenerateSetupFunction.bin
Binary files differ
diff --git a/macros/Scilab-Arduino/GetArduinoFunctions.bin b/macros/Scilab-Arduino/GetArduinoFunctions.bin
new file mode 100644
index 0000000..3214124
--- /dev/null
+++ b/macros/Scilab-Arduino/GetArduinoFunctions.bin
Binary files differ
diff --git a/macros/Scilab-Arduino/GetArduinoFunctions.sci b/macros/Scilab-Arduino/GetArduinoFunctions.sci
index a112fe6..eff61fe 100644
--- a/macros/Scilab-Arduino/GetArduinoFunctions.sci
+++ b/macros/Scilab-Arduino/GetArduinoFunctions.sci
@@ -30,6 +30,7 @@ ArduinoFunctions = [
"cmd_dcmotor_run"
"cmd_servo_attach"
"cmd_servo_detach"
- "cmd_servo_move"];
+ "cmd_servo_move"
+ "i2c_dev"];
endfunction
diff --git a/macros/Scilab-Arduino/GetArduinoSetupFunctions.bin b/macros/Scilab-Arduino/GetArduinoSetupFunctions.bin
new file mode 100644
index 0000000..ce3965e
--- /dev/null
+++ b/macros/Scilab-Arduino/GetArduinoSetupFunctions.bin
Binary files differ
diff --git a/macros/Scilab-Arduino/GetArduinoSetupFunctions.sci b/macros/Scilab-Arduino/GetArduinoSetupFunctions.sci
index d2cd0c7..d310648 100644
--- a/macros/Scilab-Arduino/GetArduinoSetupFunctions.sci
+++ b/macros/Scilab-Arduino/GetArduinoSetupFunctions.sci
@@ -24,6 +24,8 @@ function ArduinoSetupFunctions = GetArduinoSetupFunctions()
ArduinoSetupFunctions = [
"cmd_dcmotor_setup"
"cmd_servo_attach"
- "cmd_servo_detach"];
+ "cmd_servo_detach"
+ "i2c_dev"];
+
endfunction
diff --git a/macros/Scilab-Arduino/InsertSetupInList.bin b/macros/Scilab-Arduino/InsertSetupInList.bin
new file mode 100644
index 0000000..29e3731
--- /dev/null
+++ b/macros/Scilab-Arduino/InsertSetupInList.bin
Binary files differ
diff --git a/macros/Scilab-Arduino/IsArduinoFunction.bin b/macros/Scilab-Arduino/IsArduinoFunction.bin
new file mode 100644
index 0000000..5dbfaca
--- /dev/null
+++ b/macros/Scilab-Arduino/IsArduinoFunction.bin
Binary files differ
diff --git a/macros/Scilab-Arduino/IsArduinoSetupFunction.bin b/macros/Scilab-Arduino/IsArduinoSetupFunction.bin
new file mode 100644
index 0000000..209b3f9
--- /dev/null
+++ b/macros/Scilab-Arduino/IsArduinoSetupFunction.bin
Binary files differ
diff --git a/macros/Scilab-Arduino/IsArduinoSetupFunction.sci b/macros/Scilab-Arduino/IsArduinoSetupFunction.sci
index 3e1c18f..4afceca 100644
--- a/macros/Scilab-Arduino/IsArduinoSetupFunction.sci
+++ b/macros/Scilab-Arduino/IsArduinoSetupFunction.sci
@@ -9,6 +9,7 @@
// Email: toolbox@scilab.in
function Output = IsArduinoSetupFunction(FunName)
+disp(FunName)
// -----------------------------------------------------------------
// Check whether input function name is an Arduino setup function or not.
//
@@ -25,6 +26,7 @@ function Output = IsArduinoSetupFunction(FunName)
//Get list of supported functions for Arduino
ArduinoSetupFunctions = GetArduinoSetupFunctions();
+
//Check whether input function is present in above list or not
FunNameInArduinoSetup = members(FunName,ArduinoSetupFunctions);
Output = bool2s(FunNameInArduinoSetup~=0);
diff --git a/macros/Scilab-Arduino/i2c_dev.bin b/macros/Scilab-Arduino/i2c_dev.bin
new file mode 100644
index 0000000..73a0816
--- /dev/null
+++ b/macros/Scilab-Arduino/i2c_dev.bin
Binary files differ
diff --git a/macros/Scilab-Arduino/i2c_dev.sci b/macros/Scilab-Arduino/i2c_dev.sci
new file mode 100644
index 0000000..f86e588
--- /dev/null
+++ b/macros/Scilab-Arduino/i2c_dev.sci
@@ -0,0 +1,3 @@
+function z = i2c_dev(address)
+ z = 0
+endfunction
diff --git a/macros/Scilab-Arduino/i2c_read.bin b/macros/Scilab-Arduino/i2c_read.bin
new file mode 100644
index 0000000..475de3e
--- /dev/null
+++ b/macros/Scilab-Arduino/i2c_read.bin
Binary files differ
diff --git a/macros/Scilab-Arduino/i2c_read.sci b/macros/Scilab-Arduino/i2c_read.sci
new file mode 100644
index 0000000..6916b9c
--- /dev/null
+++ b/macros/Scilab-Arduino/i2c_read.sci
@@ -0,0 +1,2 @@
+function y = i2c_read(address,bytes)
+endfunction
diff --git a/macros/Scilab-Arduino/i2c_read_register.bin b/macros/Scilab-Arduino/i2c_read_register.bin
new file mode 100644
index 0000000..9776cb1
--- /dev/null
+++ b/macros/Scilab-Arduino/i2c_read_register.bin
Binary files differ
diff --git a/macros/Scilab-Arduino/i2c_read_register.sci b/macros/Scilab-Arduino/i2c_read_register.sci
new file mode 100644
index 0000000..51a88ee
--- /dev/null
+++ b/macros/Scilab-Arduino/i2c_read_register.sci
@@ -0,0 +1,3 @@
+function x = i2c_read_register(address,reg_adrs)
+ x = 0;
+endfunction
diff --git a/macros/Scilab-Arduino/i2c_write.bin b/macros/Scilab-Arduino/i2c_write.bin
new file mode 100644
index 0000000..ad51511
--- /dev/null
+++ b/macros/Scilab-Arduino/i2c_write.bin
Binary files differ
diff --git a/macros/Scilab-Arduino/i2c_write.sci b/macros/Scilab-Arduino/i2c_write.sci
new file mode 100644
index 0000000..8dfd070
--- /dev/null
+++ b/macros/Scilab-Arduino/i2c_write.sci
@@ -0,0 +1,2 @@
+function i2c_write(address,data)
+endfunction
diff --git a/macros/Scilab-Arduino/i2c_write_register.bin b/macros/Scilab-Arduino/i2c_write_register.bin
new file mode 100644
index 0000000..8441dba
--- /dev/null
+++ b/macros/Scilab-Arduino/i2c_write_register.bin
Binary files differ
diff --git a/macros/Scilab-Arduino/i2c_write_register.sci b/macros/Scilab-Arduino/i2c_write_register.sci
new file mode 100644
index 0000000..a9b5553
--- /dev/null
+++ b/macros/Scilab-Arduino/i2c_write_register.sci
@@ -0,0 +1,2 @@
+function i2c_write_register(address, reg_adrs, data)
+endfunction
diff --git a/macros/Scilab-Arduino/lib b/macros/Scilab-Arduino/lib
index 0304cad..83baacd 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 55eb6fe..c1386c3 100644
--- a/macros/Scilab-Arduino/names
+++ b/macros/Scilab-Arduino/names
@@ -4,3 +4,8 @@ GetArduinoSetupFunctions
InsertSetupInList
IsArduinoFunction
IsArduinoSetupFunction
+i2c_dev
+i2c_read
+i2c_read_register
+i2c_write
+i2c_write_register