Arduino Playground is read-only starting December 31st, 2018. For more info please look at this Forum Post

ShiftEasier:

ShiftEasier for Arduino
Author: José Aristizábal
Contact: davidaristi.0504@gmail.com

Navigation


Description

74HC595 output with function similar to DigitalWrite(pin, state)
Supports a lot registers and has constants for the first 4. All examples have been tested with these connections:
http://www.arduino.cc/en/Tutorial/ShiftOut


Example

#include <ShiftEasier.h>

ShiftEasier shiftout(8, 12, 11);

void setup()
{
  // nothing to do
}

void loop()
{
  shiftout.Write(PIN_1_0, HIGH);
  delay(100);
  shiftout.Write(PIN_1_1, HIGH);
  delay(100);
  shiftout.Write(PIN_1_2, HIGH);
  delay(100);
  shiftout.Write(PIN_1_3, HIGH);
  delay(100);
  shiftout.Write(PIN_1_4, HIGH);
  delay(100);
  shiftout.Write(PIN_1_5, HIGH);
  delay(100);
  shiftout.Write(PIN_1_6, HIGH);
  delay(100);
  shiftout.Write(PIN_1_7, HIGH);
  delay(100);  
  shiftout.Write(PIN_1_0, LOW);
  delay(100);
  shiftout.Write(PIN_1_1, LOW);
  delay(100);
  shiftout.Write(PIN_1_2, LOW);
  delay(100);
  shiftout.Write(PIN_1_3, LOW);
  delay(100);
  shiftout.Write(PIN_1_4, LOW);
  delay(100);
  shiftout.Write(PIN_1_5, LOW);
  delay(100);
  shiftout.Write(PIN_1_6, LOW);
  delay(100);
  shiftout.Write(PIN_1_7, LOW);
  delay(100);    
}


Known bugs

Without known bugs.


Content

The zip file content:
.h header file (two)
.cpp source file
.txt Keywords file
examples folder with 4 useful examples.


Download

For "stable" release
https://github.com/blackhack/ArduLibraries/blob/master/Releases/ShiftEasier.zip?raw=true
For latest updates
https://github.com/blackhack/ArduLibraries/tree/master/ShiftEasier