This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

reset

Clear all outputs of shift register

Syntax

reset(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.

Introduced in R2016b