Lazarus

Programming => Packages and Libraries => Topic started by: pascalbythree on July 06, 2022, 07:22:08 pm

Title: Example code for HD44780 display in FPC for Raspberry PICO
Post by: pascalbythree on July 06, 2022, 07:22:08 pm
Hey Brothers,

Does anybody have example code to display your HD44780 display on a Raspberry PICO

in Freepascal ?

Now i successfully work with a SSD1306 display but it is to small. And i can not hook up multiple displays at the same time. Does not seem to work.

Greets, Wouter van Wegen
Title: Re: Example code for HD44780 display in FPC for Raspberry PICO
Post by: Thaddy on July 06, 2022, 08:59:02 pm
The pico just not has enough space/memory to run anything like hdmi.... It is a MC.
But it can run a two line LED display easily.
Title: Re: Example code for HD44780 display in FPC for Raspberry PICO
Post by: MarkMLl on July 06, 2022, 10:19:47 pm
The pico just not has enough space/memory to run anything like hdmi.... It is a MC.
But it can run a two line LED display easily.

Where the Hell did you get HDMI from?????

The HD44780 is a minimal LCD controller, so well-known it even has a Wp page.

Besides https://hackaday.com/2021/02/12/bitbanged-dvi-on-a-raspberry-pi-rp2040-microcontroller/

MarkMLl
Title: Re: Example code for HD44780 display in FPC for Raspberry PICO
Post by: Thausand on July 06, 2022, 11:33:27 pm
Where the Hell did you get HDMI from?????
Oh... I was think it is star (https://en.wikipedia.org/wiki/HD_44780) and need take picture with Pico  :D
Title: Re: Example code for HD44780 display in FPC for Raspberry PICO
Post by: ccrause on July 07, 2022, 09:26:43 am
Oh... I was think it is star (https://en.wikipedia.org/wiki/HD_44780) and need take picture with Pico  :D

In this case the space is significant: HD 44780 (https://en.wikipedia.org/wiki/HD_44780) vs. HD44780 (https://en.wikipedia.org/wiki/Hitachi_HD44780_LCD_controller) %)
Title: Re: Example code for HD44780 display in FPC for Raspberry PICO
Post by: avra on July 07, 2022, 11:40:10 am
Does anybody have example code to display your HD44780 display on a Raspberry PICO
You can try to adapt this code from AVR to PICO:
https://github.com/ccrause/fpc-avr/blob/master/src/library/lcd_hd44780.pas
https://github.com/ccrause/fpc-avr/tree/master/src/examples/lcd1

PXL library also has 44780 character display driver but you would need much more work to extract just the parts you need to have it working on PICO:
http://asphyre.net/products/pxl
Title: Re: Example code for HD44780 display in FPC for Raspberry PICO
Post by: avra on July 07, 2022, 12:12:23 pm
Now i successfully work with a SSD1306 display but it is to small.
How big display do you need? There is 2.42" SSD1309 (should be compatible with SSD1306 - haven't checked)
https://www.aliexpress.com/item/32950307344.html
https://www.aliexpress.com/item/32884994986.html
Title: Re: Example code for HD44780 display in FPC for Raspberry PICO
Post by: krolikbest on July 09, 2022, 11:30:21 am
Another point of view, since I am also a Bascom programmer, it was almost quite easy to start with MMBasic for Pico, called PicoMite. However, the disadvantage is that it is an interpreter, so you have to load the whole interpreter into Pico and only then write Basic programs. Of course, there are many examples on the web, but also a good manual for PicoMite. There you'll find HD44780 as well. Still on my todo list is to make some example with Pico and visualisation datas on pc side using pas2js (lack of time or i'm too lazy to do it)
TinyPortal © 2005-2018