Commits

F Malpartida committed ae80f00

Added Shift Register class/support to the library.

Comments (0)

Files changed (5)

    
    
 private:
-   uint8_t _shadow;
-   uint8_t _dirMask;
-   uint8_t _i2cAddr;
-   bool    _initialised;
+   uint8_t _shadow;      // Shadow output
+   uint8_t _dirMask;     // Direction mask
+   uint8_t _i2cAddr;     // I2C address
+   bool    _initialised; // Initialised object
    
 };
 
    // Internal LCD variables to control the LCD shared between all derived
    // classes.
    uint8_t _displayfunction;  // LCD_5x10DOTS or LCD_5x8DOTS, LCD_4BITMODE or 
-   // LCD_8BITMODE, LCD_1LINE or LCD_2LINE
+                              // LCD_8BITMODE, LCD_1LINE or LCD_2LINE
    uint8_t _displaycontrol;   // LCD base control command LCD on/off, blink, cursor
-   // all commands are "ored" to its contents.
+                              // all commands are "ored" to its contents.
    uint8_t _displaymode;      // Text entry mode to the LCD
    uint8_t _numlines;         // Number of lines of the LCD, initialized with begin()
    

LiquidCrystal.cpp

    // Initialize the IO port direction to OUTPUT
    // ------------------------------------------
    
-   for ( uint8_t i = 0; i < 4; i++ )
+   for ( i = 0; i < 4; i++ )
    {
       pinMode ( _data_pins[i], OUTPUT );
    }
    
    if ( !fourbitmode )
    {
-      for ( uint8_t i = 4; i < 7; i++ )
+      for ( i = 4; i < 7; i++ )
       {
          pinMode ( _data_pins[i], OUTPUT );
       }

LiquidCrystal_I2C.cpp

 #include <LiquidCrystal_I2C.h>
 
 
+
 // When the display powers up, it is configured as follows:
 //
 // 1. Display clear

LiquidCrystal_I2C.h

 #ifndef LiquidCrystal_I2C_h
 #define LiquidCrystal_I2C_h
 #include <inttypes.h>
-#include <Print.h>HD44780
+#include <Print.h>
 #include <Wire.h>
 #include <I2CIO.h>
 #include <LCD.h>