From c600ebcb67961fe6007ba41fd5ad987da3af7f6e Mon Sep 17 00:00:00 2001 From: Brijeshcr Date: Thu, 6 Jul 2017 15:48:47 +0530 Subject: Revert "LinearAlgebra Function Added" --- .../src/c/scilab-arduino/cmd_i2c_write/u8cmd_i2c_writes.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 2.3-1/src/c/scilab-arduino/cmd_i2c_write/u8cmd_i2c_writes.cpp (limited to '2.3-1/src/c/scilab-arduino/cmd_i2c_write') diff --git a/2.3-1/src/c/scilab-arduino/cmd_i2c_write/u8cmd_i2c_writes.cpp b/2.3-1/src/c/scilab-arduino/cmd_i2c_write/u8cmd_i2c_writes.cpp new file mode 100644 index 00000000..0239097a --- /dev/null +++ b/2.3-1/src/c/scilab-arduino/cmd_i2c_write/u8cmd_i2c_writes.cpp @@ -0,0 +1,13 @@ +#include "cmd_i2c_write.h" +#include "Arduino.h" +#include "Wire.h" + +void u8cmd_i2c_writes(uint8 address, uint8 data) +{ + + Wire.beginTransmission(address); //Begins transmission to the device connected to given address + Wire.write(data); //sends data to slave device + Wire.endTransmission(); //Transmission ends + +} + -- cgit