diff options
author | siddhu8990 | 2015-12-17 14:48:36 +0530 |
---|---|---|
committer | siddhu8990 | 2015-12-23 11:26:29 +0530 |
commit | 66ae4f251032aca6b7063353beee6c387a58418e (patch) | |
tree | a474f509f6413acb4593a43c371a4406d9400957 /2.3-1/src/c/scilab-arduino/default_files | |
parent | eac39cdc77ad5fdaf7b245cbce5c92f105ac75bf (diff) | |
download | Scilab2C-66ae4f251032aca6b7063353beee6c387a58418e.tar.gz Scilab2C-66ae4f251032aca6b7063353beee6c387a58418e.tar.bz2 Scilab2C-66ae4f251032aca6b7063353beee6c387a58418e.zip |
Code generation for Arduino changed. DC motor added to Arduino.
Diffstat (limited to '2.3-1/src/c/scilab-arduino/default_files')
-rw-r--r-- | 2.3-1/src/c/scilab-arduino/default_files/sci2c_arduino.ino | 4 | ||||
-rw-r--r-- | 2.3-1/src/c/scilab-arduino/default_files/setup_arduino.h | 64 |
2 files changed, 67 insertions, 1 deletions
diff --git a/2.3-1/src/c/scilab-arduino/default_files/sci2c_arduino.ino b/2.3-1/src/c/scilab-arduino/default_files/sci2c_arduino.ino index 9e9d9b6e..2b30456c 100644 --- a/2.3-1/src/c/scilab-arduino/default_files/sci2c_arduino.ino +++ b/2.3-1/src/c/scilab-arduino/default_files/sci2c_arduino.ino @@ -1,11 +1,13 @@ #include "Arduino.h" #include <loop_arduino.h> +#include <setup_arduino.h> void setup() { //Please write appropriate setup functions here. + setup_arduino(); } -int i = 0; + void loop() { loop_arduino(); diff --git a/2.3-1/src/c/scilab-arduino/default_files/setup_arduino.h b/2.3-1/src/c/scilab-arduino/default_files/setup_arduino.h new file mode 100644 index 00000000..9eb0ed4a --- /dev/null +++ b/2.3-1/src/c/scilab-arduino/default_files/setup_arduino.h @@ -0,0 +1,64 @@ +/* +** ************************************************ +** This file has been generated using +** Scilab2C (Version 2.3) +** +** Please visit following links for more informations: +** Atoms Module: http://atoms.scilab.org/toolboxes/scilab2c +** Scilab2C Forge: http://forge.scilab.org/index.php/p/scilab2c/ +** Scilab2C ML: http://forge.scilab.org/index.php/p/scilab2c/ +** ************************************************ +*/ + + +#ifndef setup_arduino_h +#define setup_arduino_h +/* +** ------------------- +** ----- Target ------ +** ------------------- +*/ +# define Arduino1 1 +/* +** ----------------------- +** --- SCI2C Includes. --- +** ----------------------- +*/ +#include "sci2clib.h" +/* +** --------------------------- +** --- End SCI2C Includes. --- +** --------------------------- +*/ + + +#ifdef __cplusplus +extern "C" { +#endif +/* +** ------------------- +** --- Prototypes. --- +** ------------------- +*/ +int setup_arduino(); +/* +** ----------------------- +** --- End Prototypes. --- +** ----------------------- +*/ + + +/* +** ------------------------ +** --- USER2C Includes. --- +** ------------------------ +*/ +/* +** ---------------------------- +** --- End USER2C Includes. --- +** ---------------------------- +*/ +#ifdef __cplusplus +} /* extern "C" */ +#endif +#endif |