Go Down

Topic: Bug in send function (Read 149 times) previous topic - next topic


If LCD's data lines are shared with other components like keypad, LCD will not work properly due to incorrect send function in liquid crystal library so if coder sets one of these pins as input, result will same. The send method does not set/control pin status before writing data. Below code can be added to LiquidCrystal.cpp

Code: [Select]

  for (int i=0; i<((_displayfunction & LCD_8BITMODE) ? 8 : 4); ++i)
    pinMode(_data_pins[i], OUTPUT);


It would be useful if you could indicate in which function/method that should be implemented.

In my opinion, sharing pins is not a good idea; but that's just me.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

Go Up