Writer

I2C Writer

    Writer

Library

Basic/I2C

Parameters

Writer_0

NameLabelDescriptionData TypeValid Values

address

Device address

Defines the pin used for the i2c connection

Scalar

busmode

Bus mode

Defines the mode (Master or Slave)

Structure

busmode/master

Master

Sets the mode to Master

Number

0
1

busmode/slave

Slave

Sets the mode to Slave

Number

0
1

mbc

Message byte count

Defines how many bytes are present in the message

Scalar

Writer_1

NameLabelDescriptionData TypeValid Values

use_open_port

Use opened serial port

Use the port defined in the configuration block or specify the port.

if this checkbox is checked ON, the block uses the serial communication channel opened by the ArduinoConfiguration block.
If the model is connected to multiple Arduino boards, it should be unchecked, and the actual communication port should be provided as a block parameter.

Number

0
1

com_port

Communication port

Comm port number

String

'COM4'
'COM8'
com_port

Ports

NameTypeDescriptionIO TypeNumber

Port 1

activation

input

1

Port 2

explicit

input

1

Diagram

Writer