sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Go to revisionGo to path
Help
Rev: HEAD (658) - svn://greenwoodma.servehttp.com/open-source / blog-code / arduino / libraries / ShiftRegister / ShiftRegister.h
Show File - ShiftRegister.h  [show properties]
spinner
/**
 * ShiftRegister
 * Copyright (c) Mark A. Greenwood, 2012
 * This work is licensed under the Creative Commons
 * Attribution-NonCommercial-ShareAlike 3.0 Unported License.
 * To view a copy of this license, visit
 * http://creativecommons.org/licenses/by-nc-sa/3.0/.
 **/
10  #ifndef ShiftRegister_h
11  #define ShiftRegister_h
12 
13  #include "Arduino.h"
14 
15  class ShiftRegister
16  {
17    public:
18      ShiftRegister(byte data, byte clock, byte latch);
19      void setPin(byte pin, byte value);
20      void setPin(byte pin, byte value, boolean update);
21      void sync();
22    private:
23      byte _data;
24      byte _clock;
25      byte _latch;
26      byte _state;
27  };
28 
29  #endif

feed icon

sventon 2.1.4