Duvidas Biblioteca LiquidCrystal


boas malta.

podiam-me ajudar numas duvidas?

quando uso biblioteca liquidcrystal mesma vem predefinida com os pins descritos em baixo.
É possível usar outros outputs, por exemplo: em vez 2,3,4,5 usar o 8,9,10,11 e em vez 11 e 12 usar o 12, 13?

basta alterar o comando "liquidcrystal lcd(12, 11, 5, 4, 3, 2);" para "liquidcrystal lcd(13, 12, 11, 10, 9, 8);"

obrigado desde já.


do código da libraria
"
liquidcrystal library - cursor

demonstrates use 16x2 lcd display.  liquidcrystal
library works lcd displays compatible
hitachi hd44780 driver. there many of them out there, , you
can tell them 16-pin interface.

sketch prints "hello world!" lcd and
uses cursor()  , nocursor() methods turn
on , off cursor.

circuit:
* lcd rs pin digital pin 12
* lcd enable pin digital pin 11
* lcd d4 pin digital pin 5
* lcd d5 pin digital pin 4
* lcd d6 pin digital pin 3
* lcd d7 pin digital pin 2
* lcd r/w pin ground
* 10k resistor:
* ends +5v , ground
* wiper lcd vo pin (pin 3)
"

pode sim amigo, é exatamente como você alterou. atente conectar corretamente lcd para o arduino.


Arduino Forum > International > Portugues > Duvidas Biblioteca LiquidCrystal


arduino

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62