Recent

Author Topic: SEARCHED: Raspberry PICO FPC code for PWM, IRCapture and HD 44780  (Read 1053 times)

pascalbythree

  • Sr. Member
  • ****
  • Posts: 256
Multiple projects going on.

For my new pre-amp i am searching for freepascal code for my Raspberry PICO

Does anybody know a library URL or code underhand to display the HD44780 display, use 3 PWM channels and IRCapture?
This time from PICO instead of AVR.

Greets, Wouter van Wegen

ccrause

  • Hero Member
  • *****
  • Posts: 856
Re: SEARCHED: Raspberry PICO FPC code for PWM, IRCapture and HD 44780
« Reply #1 on: February 20, 2023, 02:03:10 pm »
For the PICO reading this wiki article is probably a good start.  Michael Ring also posted a collection of FPC examples for the PICO.  I don't see an HD44780 display driver there, but it does cover low level GPIO access.

Laksen

  • Hero Member
  • *****
  • Posts: 744
    • J-Software
Re: SEARCHED: Raspberry PICO FPC code for PWM, IRCapture and HD 44780
« Reply #2 on: February 20, 2023, 03:39:16 pm »
Here's a pretty highlevel implementation of a driver for a 4-bit text display. The most missing context is that TTimer.Delay is in microseconds. And any eventual R/~W pins should be set low since this driver doesn't read from the display

MiR

  • Sr. Member
  • ****
  • Posts: 250
Re: SEARCHED: Raspberry PICO FPC code for PWM, IRCapture and HD 44780
« Reply #3 on: February 20, 2023, 04:16:57 pm »
Here's an implementation for HD 44780:

https://github.com/michael-ring/mbf/blob/master/Samples/HD44780Demo/HD44780Demo.lpr

not for the pico but should be straightforward to convert...

Michael

 

TinyPortal © 2005-2018