Main Content

Shift Registers

R2026b
Read from and write to shift registers connected to Arduino® hardware

Use shift registers to add additional inputs or outputs to Arduino hardware. You can use the serial-in/parallel-out shift registers to control multiple outputs, or the parallel-in/serial-out shift registers to gather multiple inputs using one pin on Arduino hardware. For example, you can control multiple LED lights using a single pin on Arduino hardware. You can use the shift register functions to read or write serial data. The following shift registers are supported:

Note

MATLAB® Support Package for Arduino Hardware does not support read function for 74HC595 shift register.

Create an Arduino object using arduino before you use shift register functions. See Connect to Arduino Hardware for more information.

Functions

shiftRegisterConnection to shift register on Arduino hardware
readRead data from shift register
writeWrite data to shift register
resetClear all outputs of shift register

Topics