summaryrefslogtreecommitdiff
path: root/src/c/scilab-arduino/cmd_i2c_dev
diff options
context:
space:
mode:
authorukashanoor2017-06-21 12:15:47 +0530
committerukashanoor2017-06-21 12:15:47 +0530
commit18f7cf96174799b674115e43f108423fa5d0fc9c (patch)
treeab0d0ac7a349986cf95556b7c1975748cbfb8ec1 /src/c/scilab-arduino/cmd_i2c_dev
parent785e19f097f7ca1964edaf159c9adfe2eda733b5 (diff)
parente92d6c6791aae06053637ad3bf6b0f9d8986986c (diff)
downloadScilab2C_fossee_old-18f7cf96174799b674115e43f108423fa5d0fc9c.tar.gz
Scilab2C_fossee_old-18f7cf96174799b674115e43f108423fa5d0fc9c.tar.bz2
Scilab2C_fossee_old-18f7cf96174799b674115e43f108423fa5d0fc9c.zip
updated with main repo
Diffstat (limited to 'src/c/scilab-arduino/cmd_i2c_dev')
-rw-r--r--src/c/scilab-arduino/cmd_i2c_dev/u8cmd_i2c_devs.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/c/scilab-arduino/cmd_i2c_dev/u8cmd_i2c_devs.cpp b/src/c/scilab-arduino/cmd_i2c_dev/u8cmd_i2c_devs.cpp
new file mode 100644
index 0000000..adc1a6e
--- /dev/null
+++ b/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);
+}