[FUGSPBR] Instalando um Display LCD 16x2 no Free
Alexandre Nuernberg
berg em viaip.com.br
Sex Out 11 14:55:48 BRT 2002
voce usou o LCDproc? /usr/ports/sysutils/lcdproc/
meu display usa o driver HD44780
baixei o source da http://lcdproc.omnipotent.net/ compilei o lcdproc com
suporte a todos os drivers:
./configure --enable-drivers=all
make
make install
ele aceita todas as opcoes, mas qdo vou rodar com o driver correto (HD44780)
da core dumped
LCDd -d HD44780
Bus error (core dumped)
com relacao ao arquivo ppilcd.c vc compilou-o diretamente ou tem que
recompilar o kernel.,
pois no meu 4.6 nao tenho nado no diretorio /usr/share/examples/ppi
somente no /usr/src/share/examples/ppi/ppilcd.c e qdo tento compila-lo da
erro
cd /usr/src/share/examples/ppi
l
total 18
drwxr-xr-x 2 root wheel 512 Oct 11 15:15 ./
drwxr-xr-x 36 root wheel 1024 Aug 29 2002 ../
-rw-r--r-- 1 root wheel 196 Aug 28 1999 Makefile
-rw-r--r-- 1 root wheel 10691 Aug 28 1999 ppilcd.c
[root em teste /usr/src/share/examples/ppi]# make
Warning: Object directory not changed from original
/usr/src/share/examples/ppi
cc -O -pipe -c ppilcd.c
ppilcd.c:18: ppbconf.h: No such file or directory
ppilcd.c:19: ppi.h: No such file or directory
ppilcd.c: In function `main':
ppilcd.c:94: warning: return type of `main' is not `int'
ppilcd.c: In function `hd44780_output':
ppilcd.c:299: `SELECTIN' undeclared (first use in this function)
ppilcd.c:299: (Each undeclared identifier is reported only once
ppilcd.c:299: for each function it appears in.)
ppilcd.c:300: `AUTOFEED' undeclared (first use in this function)
ppilcd.c:300: `STROBE' undeclared (first use in this function)
ppilcd.c:300: `PPISCTRL' undeclared (first use in this function)
ppilcd.c:302: `PPISDATA' undeclared (first use in this function)
ppilcd.c: In function `hd44780_input':
ppilcd.c:311: `STROBE' undeclared (first use in this function)
ppilcd.c:311: `PPISCTRL' undeclared (first use in this function)
ppilcd.c:313: `PPIGDATA' undeclared (first use in this function)
ppilcd.c:316: `SELECTIN' undeclared (first use in this function)
ppilcd.c: In function `hd44780_prepare':
ppilcd.c:349: `PPIGCTRL' undeclared (first use in this function)
ppilcd.c:351: `STROBE' undeclared (first use in this function)
ppilcd.c:351: `SELECTIN' undeclared (first use in this function)
ppilcd.c:351: `AUTOFEED' undeclared (first use in this function)
ppilcd.c:353: `PPISCTRL' undeclared (first use in this function)
ppilcd.c:354: `PPISDATA' undeclared (first use in this function)
ppilcd.c: In function `hd44780_command':
ppilcd.c:378: `SELECTIN' undeclared (first use in this function)
*** Error code 1
Stop in /usr/src/share/examples/ppi.
se tiver masi alguma dica, agradeco.
----- Original Message -----
From: "Helio Luchtenberg Junior" <hlj em viamidia.com>
To: <fugspbr em fugspbr.org>
Cc: "Alexandre Nuernberg" <berg em viaip.com.br>
Sent: Wednesday, October 09, 2002 7:16 PM
Subject: RE: [FUGSPBR] Instalando um Display LCD 16x2 no Free
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ola lista,
>
> On 09-Oct-2002 Alexandre Nuernberg wrote:
> > Ola pessoal,
> >
> > alguem ja conseguiu fazer o FreeBSD detectar um display de cristal
liquido de
> > 16x2?
>
> Sim, mas o meu e' 20x2
>
> > consegui fazer funcionar no linux.
> > carregando o modulo lcd: insmod lcd, detecta o display que esta na porta
> > paralela.
>
> o meu e' paralelo.
>
> > no free, instalei o pacote do ports: lcdproc, mas nao consigo fazer o
display
> > detectar.
>
> voce vai ter que usar a interface /dev/ppi0.
>
> Uma dica: as instrucoes no arquivo /usr/share/examples/ppilcd.c estao
erradas
> em relacao a pinagem. Vou reportar isto via PR...
>
> Helio Luchtenberg Junior
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 5.0i for non-commercial use
> Charset: noconv
>
> iQA/AwUBPaSq22MdgzR9lXmPEQJeVACgvPNdhteWwaUwotB+iDvCAhxObnMAoL3X
> P9NbhtNw9B5WwbQ+uw7xt58p
> =LjAu
> -----END PGP SIGNATURE-----
>
_______________________________________________________________
Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
Mais detalhes sobre a lista de discussão freebsd