Next: Arduino SPI Functions, Previous: Arduino Servo Functions, Up: Function Reference [Contents][Index]
Free resources of a shiftRegister object.
dev - object to free
See also: shiftRegister.
Display the register object in a verbose way,
register - the arduino register object created with shiftRegister.
See also: shiftRegister.
read a value from the shift register.
register - shift register created from shiftRegister call.
precision - optional precision of the data, where precision can be a number in a multiple of 8 (ie: 8,16,32) or can be a named integer type: 8 of ’uint8’, ’uint16’, ’uint32’. The default precision is 8.
retval - returned data read from the register.
See also: shiftRegister, write.
clear the shift register value.
register - shift register created from shiftRegister call.
See also: shiftRegister, read, write.
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.
subref for shiftRegister
See also: shiftRegister.
Write a value to the shift register.
register - shift register created from shiftRegister call.
dataIn - data to clock into the shiftRegister.
precision - optional precision of the data, where precision can be a number in a multiple of 8 (ie: 8,16,32) or can be a named integer type of ’uint8’, ’uint16’, ’uint32’. The default precision is 8.
See also: shiftRegister, read.
Next: Arduino SPI Functions, Previous: Arduino Servo Functions, Up: Function Reference [Contents][Index]