[Lazarus] Accessing GPIO on RaspberryPi2 from Lazarus/FPC

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Fri Oct 9 00:20:52 CEST 2015


Bo Berglund wrote:
> I have found a description of a unit implementing an interface to the
> gpio driver in the Free Pascal documentation. It is here:
> http://wiki.freepascal.org/Lazarus_on_Raspberry_Pi#5._PiGpio_Low-level_native_pascal_unit_.28GPIO_control_instead_of_wiringPi_c_library.29
> 
> However, it specifically lists the BCM2835 chip and not the BCM2836
> which is used on the Pi2.
> 
> So I wonder if anyone here knows about an updated gpio.pas file which
> works on the Pi2?

I have already said elsewhere: exercise the interface using echo to 
/sys/class/gpio etc. first, since I would expect this to be the same 
irrespective of model.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list