File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1152,6 +1152,15 @@ returnValue = I2C_DRV_MasterSendDataBlocking(
1152
1152
1 /* The length in bytes of the data to be transferred and data is transferred from the sensor to master via bus */ ,
1153
1153
500 /* timeout in milliseconds */ );
1154
1154
1155
+ returnValue = I2C_DRV_MasterSendDataBlocking (
1156
+ 0 /* I2C peripheral instance */ ,
1157
+ & slave /* The pointer to the I2C device information structure */ ,
1158
+ cmdBuf_LEDCTRL /* The pointer to the commands to be transferred */ ,
1159
+ 2 /* The length in bytes of the commands to be transferred */ ,
1160
+ NULL /* The pointer to the data to be transferred */ ,
1161
+ 0 /* The length in bytes of the data to be transferred */ ,
1162
+ 500 /* timeout in milliseconds */ );
1163
+
1155
1164
/*
1156
1165
* This turns off the LED after finish reading the data
1157
1166
*/
You can’t perform that action at this time.
0 commit comments