Commits

F Malpartida committed 62b6ecb

Main release preparation for version 1.2.0.

Tested with 4BIT, I2C and 2 WIRE SR.

Comments (0)

Files changed (3)

    for (int i=0; i<8; i++) 
    {
       write(charmap[i]);      // call the virtual write method
-      delayMicroseconds(30);
+      delayMicroseconds(40);
    }
 }
 

LiquidCrystal_SR.cpp

    // latch. The shiftregister latch pin (STR, RCL or similar) is then
    // connected to the LCD enable pin. The LCD is (very likely) slower
    // to read the Enable pulse, and then reads the new contents of the SR.
-
    fio_digitalWrite_HIGH(_srEnableRegister, _srEnableBit);
-   waitUsec(1);                 // enable pulse must be >450ns
+   waitUsec (1);         // enable pulse must be >450ns               
    fio_digitalWrite_SWITCHTO(_srEnableRegister, _srEnableBit, LOW);
-   waitUsec(40);                // commands need > 37us to settle
+   waitUsec ( 37 );      // commands need > 37us to settle
 }
 
 // PUBLIC METHODS

examples/i2cLCDextraIO_tempLeonardo/i2cLCDextraIO_tempLeonardo.ino

 #include <LiquidCrystal.h>
 #endif
 
+#ifdef _LCD_SR_
+#include <LiquidCrystal_SR.h>
+#endif
+
 
 /*!
     @defined    CHAR_WIDTH
 const int    CONTRAST      = 65;
 #endif
 
+#ifdef _LCD_SR_
+LiquidCrystal_SR lcd(3,2,TWO_WIRE);
+//                   | |
+//                   | \-- Clock Pin
+//                   \---- Data/Enable Pin
+#endif
+
 // LCD reference variable
 LCD *myLCD = &lcd;
 
    
    pinMode ( STATUS_PIN, OUTPUT );
 
-   myLCD->begin ( 16, 2 );
+   myLCD->begin ( 20, 4 );
    // Load custom character set into CGRAM
    // --------------------------------------------------------------------
    for ( i = 0; i < charBitmapSize; i++ )
   drawBars ( tempFilter, 1, 14, '-', '+' );
   
   delay (LOOP_DELAY);
-}
+}