diff options
author | Ankit Raj | 2017-06-21 11:42:02 +0530 |
---|---|---|
committer | Ankit Raj | 2017-06-21 11:42:02 +0530 |
commit | 56aa185002761d966abebb5c67e6c1a2d5ee141c (patch) | |
tree | 828d1fb53c63bd707798807b33667b56a43eda49 /2.3-1/src/c/scilab-arduino/cmd_i2c_dev | |
parent | b96df0699b8aa17e7ba43ebafca5a557b9acebf5 (diff) | |
parent | 0051253bc224286c118c080c79eaed5bf611bd35 (diff) | |
download | Scilab2C-56aa185002761d966abebb5c67e6c1a2d5ee141c.tar.gz Scilab2C-56aa185002761d966abebb5c67e6c1a2d5ee141c.tar.bz2 Scilab2C-56aa185002761d966abebb5c67e6c1a2d5ee141c.zip |
updated with main repo
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); +} |