diff options
author | yash1112 | 2017-06-19 05:40:46 +0530 |
---|---|---|
committer | yash1112 | 2017-06-19 05:40:46 +0530 |
commit | 369c257b9ae0320621b43ca75b38ff66cc13f37b (patch) | |
tree | b100ab94e7ea15a310be05ee8b647c43c2317fb7 /src/c/scilab-arduino/cmd_i2c_dev | |
parent | b33afdb2311fbe8aad4c5c614c6098585fe2d279 (diff) | |
download | scilab2c-369c257b9ae0320621b43ca75b38ff66cc13f37b.tar.gz scilab2c-369c257b9ae0320621b43ca75b38ff66cc13f37b.tar.bz2 scilab2c-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 'src/c/scilab-arduino/cmd_i2c_dev')
-rw-r--r-- | src/c/scilab-arduino/cmd_i2c_dev/u8cmd_i2c_devs.cpp | 10 |
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 00000000..adc1a6e5 --- /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); +} |