GPIO Interface for Linux in the Ada-Programming language
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Stefan Naumann c248d5906b Update il y a 3 ans Update il y a 3 ans
gpio.adb first commit il y a 3 ans first commit il y a 3 ans
mytest.adb first commit il y a 3 ans



Building the GPIO-Package is done by using the package within another program (via the with statement) and calling

gnatmake mytest.adb


See for an interface. There are some functions and procedures not defined in the interface-file, only used within the package. You probably could use them, by putting them into the ads-file, but I see no point in that.

I tried to be as close to the WiringPi Interface as possible, because that is quite easy to understand.


The gpio-package uses the GPIO-Interface found in the Linux-filesystem in /sys/class/gpio/… . For adding PullUp and PullDown-functionality it uses the command-line-tool gpio, which is probably included by eather wiringPi or Raspbian. I tested the code on Raspbian 8 with an Raspberry Pi Model B+.