Forum > Embedded - AVR

Lazarus / RaspberyPi Hardware Library

(1/13) > >>

woodengineer:
Hello,
please find attached a wrapper unit for Gordon Henderson's
wiringPi C library (https://projects.drogon.net/raspberry-pi/wiringpi) and a little Lazarus test program.
This library allows access to the RaspberryPi's GPIO pins as well as the PWM pin.
The RaspberryPi is an inexpensive $25 SBC that runs linux. Check it out at http://www.raspberrypi.org.
BTW Lazarus runs quite well on the Pi.
Have fun, I know I will! :D
Alex

marcov:
Which distro did you run Lazarus with?

woodengineer:
Hello,
I am running ArchLinux, XFCE4, fpc 2.6 and Lazarus 0.9.30.4.
Got the fpc arm binaries from the freepascal website and then compiled Lazarus from source.
Works quite nice, haven't found any problems, just don't expect 2sec compile times.
But compared to e.g. Mono it fly's.
A "Build all" of this posts Hardware library sample app takes about 5sec (console).
A Gui app with a form and a button on it about  1:30sec and about 50sec on subsequent builds .
Also played around with Geany and FpGui which is faster, but not as comfortable as Lazarus.
Hope this helps.

Alex

DirkS:
Marco,

FYI: I have FPC / Laz running on the debian wheezy distro for armel (http://www.raspberrypi.org/archives/1435 / http://www.raspberrypi.org/phpBB3/viewtopic.php?f=50&t=8071).
I just used apt-get to install both. Versions: FPC 2.6.0-3 (2012.05/07); Laz 09.30.4-1 Rev 35971

I tried to use BigChimp's fpcup (using fpcup-linux-armel from https://bitbucket.org/reiniero/fpcup), but that did not work (or not completely).

Gr.
Dirk.

ludob:

--- Quote ---I tried to use BigChimp's fpcup (using fpcup-linux-armel from https://bitbucket.org/reiniero/fpcup), but that did not work (or not completely).
--- End quote ---
Do you stilll have any details or log files of what went wrong?
I've only tested it with --only=fpc,lazarus since the default install tries to install too much for my small arm system.

Navigation

[0] Message Index

[#] Next page

Go to full version