Forum > Linux

FPC on Rasp Pi, non Lazarus, use of GPIO.

(1/23) > >>

AlanTheBeast:
Hi,

I don't need Laz for my Pi project.  But I do need access to the GPIO.

How do I go about that?  Are there units I can DL for that?  Current v. is FPC 3.0.4 under 32b Rasp Pi OS.

Thanks,
Alan.

ojz0r:
Check out the wiki page: https://wiki.freepascal.org/Raspberry_Pi
Thats a very good guide for gpio access.

MarkMLl:
In any event the GPIO bits are exposed via a standard API in the /sys tree, and I believe that there's also a newer (and higher performance) way of driving the bits by accessing /dev devices although I've not played with it yet.

MarkMLl

AlanTheBeast:
Thanks both MarkMLI and ojzOr -

I hope to also be able to easily link assembly code.  But that is next week (waiting for the parts to come (GPS, Accel/gyro)).


So, you send me a link that says:   "https://wiki.freepascal.org/Raspberry_Pi"

And I end up on the page: "https://wiki.freepascal.org/Lazarus_on_Raspberry_Pi"

Argghh ... Oh, well, it's a start!  I'll figure out (I hope) how to strip Laz out of that....  I really only want/need a CLI as the project will be headless in the end...

ojz0r:
Its not hard to strip the Lazarus part out,  if you get stuck t can send you an example based on that guide that im currently running on a RPi Zero W.

Navigation

[0] Message Index

[#] Next page

Go to full version