F Malpartida avatar F Malpartida committed a4eb104

Corrected header files - prior to main merge.

Comments (0)

Files changed (3)

  operations. If fast digitalIO operations, comment this line out or undefine
  the mode.
  */
+#ifdef __AVR__
 #define FAST_MODE
+#endif
 
 /*!
  @function
     
     @param      cols[in] the number of columns that the display has
     @param      rows[in] the number of rows that the display has
+    @param      charsize[in] character size, default==LCD_5x8DOTS
     */
    virtual void begin(uint8_t cols, uint8_t rows, uint8_t charsize = LCD_5x8DOTS);
    

LiquidCrystal_SR3W.cpp

 //        |             |             |
 //   +----+-------------+-------------+-----------+
 //   |    Strobe        Data          Clock       |
-//   |          8-bit shift/latch register        |
-//   |    Qa   Qb   Qc   Qd   Qe   Qf   Qg   Qh   |
+//   |          8-bit shift/latch register        | 74HC595N
+//   |    Qa0  Qb1  Qc2  Qd3  Qe4  Qf5  Qg6  Qh7  |
 //   +----+----+----+----+----+----+----+----+----+
 //        |    |    |    |    |    |    |    
-//        |11  |12  |13  |14  |6   |5   |4    (LCD pins)
+//        |11  |12  |13  |14  |6   |5   |4   (LCD pins)
 //   +----+----+----+----+----+----+----+----+----+
 //   |    DB4  DB5  DB6  DB7  E    Rw   RS        |
 //   |                 LCD Module                 |
 //
+// NOTE: Rw is not used by the driver so it can be connected to GND.
+//
 // The functionality provided by this class and its base class is identical
 // to the original functionality of the Arduino LiquidCrystal library.
 //

LiquidCrystal_SR3W.h

 //        |             |             |
 //   +----+-------------+-------------+-----------+
 //   |    Strobe        Data          Clock       |
-//   |          8-bit shift/latch register        |
-//   |    Qa   Qb   Qc   Qd   Qe   Qf   Qg   Qh   |
+//   |          8-bit shift/latch register        | 74HC595N
+//   |    Qa0  Qb1  Qc2  Qd3  Qe4  Qf5  Qg6  Qh7  |
 //   +----+----+----+----+----+----+----+----+----+
-//        |    |    |    |    |    |        
-//        |11  |12  |13  |14  |6   |4   
+//        |    |    |    |    |    |    |    
+//        |11  |12  |13  |14  |6   |5   |4   (LCD pins)
 //   +----+----+----+----+----+----+----+----+----+
-//   |    DB4  DB5  DB6  DB7  E    RS   Rw        |
+//   |    DB4  DB5  DB6  DB7  E    Rw   RS        |
 //   |                 LCD Module                 |
 //
+// NOTE: Rw is not used by the driver so it can be connected to GND.
+//
 // The functionality provided by this class and its base class is identical
 // to the original functionality of the Arduino LiquidCrystal library.
 //
     @discussion Initializes class variables and defines the IO driving the 
     shift register. The constructor does not initialize the LCD.
     Default configuration:
-    Shift register      LCD
-    QA                  DB4
-    QB                  DB5
-    QC                  DB6
-    QD                  DB7
-    QE                  E
-    QF                  Rs
-    GND                 Rw
+       Shift register      LCD
+       QA - 0              DB4
+       QB - 1              DB5
+       QC - 2              DB6
+       QD - 3              DB7
+       QE - 4              E
+       QF - 5              
+       QG - 6              Rs
+       GND                 Rw
     
-    @param      strobe[in] shiftregister strobe pin.
-    @param      data[in] shiftregister data pin.
-    @param      clk[in] shiftregister clock pin.
+    @param      strobe[in] digital IO connected to shiftregister strobe pin.
+    @param      data[in] digital IO connected to the shiftregister data pin.
+    @param      clk[in] digital IO connected to the shiftregister clock pin.
     */
    LiquidCrystal_SR3W(uint8_t data, uint8_t clk, uint8_t strobe);
    // Constructor with backlight control
     @discussion Initializes class variables and defines the control lines of
     the LCD and the shiftregister. The constructor does not initialize the LCD.
     
-    @param      strobe[in] shiftregister strobe pin.
-    @param      data[in] shiftregister data pin.
-    @param      clk[in] shiftregister clock pin.
-    @param      En[in] LCD En (Enable) pin connected to the IO extender module
-    @param      Rw[in] LCD Rw (Read/write) pin connected to the IO extender module
-    @param      Rs[in] LCD Rs (Reg Select) pin connected to the IO extender module
-    @param      d0[in] LCD data 0 pin map on IO extender module
-    @param      d1[in] LCD data 1 pin map on IO extender module
-    @param      d2[in] LCD data 2 pin map on IO extender module
-    @param      d3[in] LCD data 3 pin map on IO extender module
+    @param      strobe[in] digital IO connected to shiftregister strobe pin.
+    @param      data[in] digital IO connected to shiftregister data pin.
+    @param      clk[in] digital IO connected to shiftregister clock pin.
+    @param      En[in] LCD En (Enable) pin connected to SR output pin.
+    @param      Rw[in] LCD Rw (Read/write) pin connected to SR output pin.
+    @param      Rs[in] LCD Rs (Reg Select) pin connected to SR output pin.
+    @param      d4[in] LCD data 4 pin map to the SR output pin.
+    @param      d5[in] LCD data 5 pin map to the SR output pin.
+    @param      d6[in] LCD data 6 pin map to the SR output pin.
+    @param      d7[in] LCD data 7 pin map to the SR output pin.
     */
    LiquidCrystal_SR3W(uint8_t data, uint8_t clk, uint8_t strobe, 
                       uint8_t En, uint8_t Rw, uint8_t Rs, 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.