Use configurePin in a MATLAB® Function block with the Simulink® Support Package for Arduino Hardware to generate code that can be deployed on Arduino Hardware.
Configure the Arduino peripherals using configurePin before
using it in the MATLAB Function block.
The function does not return any output during code generation.
The following modes are currently supported for code generation :
AnalogInput, DigitalInput,
DigitalOutput, Pullup,
PWM, and Unset.