Scale-N

Scale-N

Arduino

Componenten

Rollend Materieel

Naslag

Onderdelen

Wissels

Basis Electronica

Symbols Electronica

Programming Arduino

DCC++

DR5000

Products

Link

Stats













































Example Arduino Library ShiftRegister595

ShiftRegister595 is an interface for ShiftRegister595 on the Arduino.

Example
#include "ShiftRegister595.h"
 
byte latchPin = 8;  //Pin connected to ST_CP of 74HC595
byte clockPin = 12; //Pin connected to SH_CP of 74HC595
byte dataPin = 11;  //Pin connected to DS    of 74HC595
 
ShiftRegister595 shiftRegister595 = ShiftRegister595( latchPin , clockPin , dataPin );
 
 
void setup() {
}
 
void loop() {
  //count up routine
  for (int j = 0; j < 256; j++) {
    shiftRegister595.write(j);
    delay(1000);
  }
}
    
Download library
More libraries