diff options
author | siddhu8990 | 2017-06-20 15:34:06 +0530 |
---|---|---|
committer | siddhu8990 | 2017-06-20 15:34:06 +0530 |
commit | 0051253bc224286c118c080c79eaed5bf611bd35 (patch) | |
tree | b8198628efac2024ac0592b4a1a14ad1b0233f5c /2.3-1/src/c/scilab-arduino/cmd_i2c_dev | |
parent | 633deb856914bd374d62b3fb3b63447bd81bc03c (diff) | |
parent | 2859e00d3f1da2d4b5b47514161bf0c63fcef83f (diff) | |
download | Scilab2C-0051253bc224286c118c080c79eaed5bf611bd35.tar.gz Scilab2C-0051253bc224286c118c080c79eaed5bf611bd35.tar.bz2 Scilab2C-0051253bc224286c118c080c79eaed5bf611bd35.zip |
Merged with Yash's work. Gui modified for Arduino board selection. Arduino I2C functions added
Diffstat (limited to '2.3-1/src/c/scilab-arduino/cmd_i2c_dev')
-rw-r--r-- | 2.3-1/src/c/scilab-arduino/cmd_i2c_dev/u8cmd_i2c_devs.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/2.3-1/src/c/scilab-arduino/cmd_i2c_dev/u8cmd_i2c_devs.cpp b/2.3-1/src/c/scilab-arduino/cmd_i2c_dev/u8cmd_i2c_devs.cpp new file mode 100644 index 00000000..adc1a6e5 --- /dev/null +++ b/2.3-1/src/c/scilab-arduino/cmd_i2c_dev/u8cmd_i2c_devs.cpp @@ -0,0 +1,10 @@ +#include "cmd_i2c_dev.h" +#include "Arduino.h" +#include "Wire.h" + + +uint8 u8cmd_i2c_devs(uint8 address) +{ + Wire.begin(); + return((uint8)address); +} |