Create shift register of a given type, controlled by the input pins.
Common function parameter definition:
ar - connected arduino object.
shifttype - string name of the shift register type.
dataPin - pin used for data in/out of the device.
clockPin - pin used for clocking data on the shiftRegister.
Other variables are dependent on the shift register type:
Additional inputs:
resetPin - optional pin for resetting the shift register.
Additional inputs:
loadPin - load pin to the shift register. clockEnablePin - clock enable pin.
Additional inputs:
latchPin - latching data to the shift register. resetPin - optional pin for resetting the shift register.
register - register object
The shiftRegister object has the following public properties:
The parent (arduino) for this device
pins used by this object
model set for object
See also: arduino.
Package: arduino