Recent

Author Topic: Example code for HD44780 display in FPC for Raspberry PICO  (Read 1078 times)

pascalbythree

  • Sr. Member
  • ****
  • Posts: 255
Example code for HD44780 display in FPC for Raspberry PICO
« 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

Thaddy

  • Hero Member
  • *****
  • Posts: 14160
  • Probably until I exterminate Putin.
Re: Example code for HD44780 display in FPC for Raspberry PICO
« Reply #1 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.
« Last Edit: July 06, 2022, 09:01:01 pm by Thaddy »
Specialize a type, not a var.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6647
Re: Example code for HD44780 display in FPC for Raspberry PICO
« Reply #2 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
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Thausand

  • Sr. Member
  • ****
  • Posts: 292
Re: Example code for HD44780 display in FPC for Raspberry PICO
« Reply #3 on: July 06, 2022, 11:33:27 pm »
Where the Hell did you get HDMI from?????
Oh... I was think it is star and need take picture with Pico  :D

ccrause

  • Hero Member
  • *****
  • Posts: 843
Re: Example code for HD44780 display in FPC for Raspberry PICO
« Reply #4 on: July 07, 2022, 09:26:43 am »
Oh... I was think it is star and need take picture with Pico  :D

In this case the space is significant: HD 44780 vs. HD44780 %)

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Example code for HD44780 display in FPC for Raspberry PICO
« Reply #5 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
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: Example code for HD44780 display in FPC for Raspberry PICO
« Reply #6 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
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

krolikbest

  • Full Member
  • ***
  • Posts: 246
Re: Example code for HD44780 display in FPC for Raspberry PICO
« Reply #7 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