Commits

F Malpartida  committed 8d3ac01

Edited online

  • Participants
  • Parent commits 41fa0f8

Comments (0)

Files changed (1)

File schematics.wiki

 
 #define I2C_ADDR     0x38
 
-LiquidCrystal_I2C lcd(I2C_ADDR);
+LiquidCrystal_I2C iLCD(I2C_ADDR);
 
 void setup ( )
 {
 
 Two wire non latching Shift Register Schematic.
 {{https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/LCD_2-wire.jpg|2 wire}}
+{{{
+#!c++
+#include <LCD.h>
+#include <LiquidCrystal_SR.h>
+
+LiquidCrystal_SR iLCD(2, 1); // Assuming that the header is connected to the same digital IO pin.
+
+void setup ( )
+{
+   iLCD.begin ( 16, 2 );
+
+   // ...
+}
+}}}
 
 Three wire non latching Shift Register Schematic.
 {{https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/LCD_3-wire.jpg|3 wire}}
 
+{{{
+#!c++
+#include <LCD.h>
+#include <LiquidCrystal_SR.h>
+
+LiquidCrystal_SR iLCD(2, 1, 3); // Assuming that the header is connected to the same digital IO pin.
+
+void setup ( )
+{
+   iLCD.begin ( 16, 2 );
+
+   // ...
+}
+}}}
+
 === Latch Shift Register ===
 Two wire latch Shift Register Schematic.
 {{https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/LCD_4-bit_serial_converter_2-wire-latching-2.jpg|2 wire latch}}
 
+{{{
+#!c++
+#include <LCD.h>
+#include <LiquidCrystal_SR.h>
+
+LiquidCrystal_SR iLCD(2, 1); // Assuming that the header is connected to the same digital IO pin.
+
+void setup ( )
+{
+   iLCD.begin ( 16, 2 );
+
+   // ...
+}
+}}}
+
 Three wire latch Shift Register Schematic.
-{{https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/srlcd595.jpg|3 wire latch}}
+{{https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/srlcd595.jpg|3 wire latch}}
+{{{
+#!c++
+#include <LCD.h>
+#include <LiquidCrystal_SR.h>
+
+LiquidCrystal_SR iLCD(2, 1, 3); // Assuming that the header is connected to the same digital IO pin.
+
+void setup ( )
+{
+   iLCD.begin ( 16, 2 );
+
+   // ...
+}
+}}}