Main Content

reset

Clear all outputs of shift register

Description

example

reset(register) clears all the outputs of a serial-in/parallel-out (SIPO) shift register.

Examples

collapse all

Create an Arduino® object with the 'ShiftRegister' library.

a = arduino('COM4','Uno','Libraries','ShiftRegister');

Connect to a 74HC164 shift register connected to your Arduino board, and specify resetPin.

register = shiftRegister(a,'74HC164','D2','D3','D4')
register = 
  shiftRegister with properties:

           Model: '74HC164'      
         DataPin: 'D2'           
        ClockPin: 'D3'           
        ResetPin: 'D4'           

Clear all outputs.

reset(register);

Input Arguments

collapse all

Shift register connection, specified as a shiftRegister object.

Note

Specify the resetPin while creating the shift register object to use the reset function.

Version History

Introduced in R2016b