Issue #33 resolved

hi, have you an exemple for the 3wire code?

Anonymous created an issue

hi, sorry for my english, i want to known if you have a exemple code, for the 3wire lcd metod.

i use a 74hc595 connect to lcd like a header file istruction, but i don't have a metod to use in my .ino file..

can you tell me a dichiaration of this? thanks Angelo

Comments (2)

  1. F Malpartida repo owner

    You can use as a reference the performanceLCD.pde example looking at the code section that is in the define section LCD_SR3W. Alternatively you can use the code in LCDiSpeed.pde which is similar but looking at section: defined by (LCDIF_SR_3W).

    There is also a similar example in the HW wiring section, but has a different connection that that of the default values.

    So as an example:

    include <LiquidCrystal_SR3W.h>

    const int CONTRAST_PIN = 0; // none

    const int BACKLIGHT_PIN = 5;

    const int CONTRAST = 0;

    LiquidCrystal_SR3W lcd(3, 2, 4); // d, clk, strb as per wiring

    setup() {

    lcd.begin ( 16, 2 );

    }

    loop () {

    lcd.print ( "Hello" );

    }

  2. Noise

    i have this errors when i compile the exemple post before: D:...\Arduino\arduino-1.5.2-windows\arduino-1.5.2\libraries\LiquidCrystal2\I2CIO.cpp: In member function 'int I2CIO::begin(uint8_t)': D:...\Arduino\arduino-1.5.2-windows\arduino-1.5.2\libraries\LiquidCrystal2\I2CIO.cpp:61: error: 'Wire' was not declared in this scope D:...\Arduino\arduino-1.5.2-windows\arduino-1.5.2\libraries\LiquidCrystal2\I2CIO.cpp: In member function 'uint8_t I2CIO::read()': D:...\Arduino\arduino-1.5.2-windows\arduino-1.5.2\libraries\LiquidCrystal2\I2CIO.cpp:117: error: 'Wire' was not declared in this scope D:...\Arduino\arduino-1.5.2-windows\arduino-1.5.2\libraries\LiquidCrystal2\I2CIO.cpp: In member function 'int I2CIO::write(uint8_t)': D:...\Arduino\arduino-1.5.2-windows\arduino-1.5.2\libraries\LiquidCrystal2\I2CIO.cpp:140: error: 'Wire' was not declared in this scope

    thanks for the respose

  3. Log in to comment