1
0
Fork
You've already forked AdaGPIO
0
No description
  • Ada 100%
Find a file
2015年12月11日 19:37:42 +01:00
gpio.adb first commit 2015年12月11日 15:19:49 +01:00
gpio.ads first commit 2015年12月11日 15:19:49 +01:00
mytest.adb first commit 2015年12月11日 15:19:49 +01:00
README.md Update README.md 2015年12月11日 19:37:42 +01:00

AdaGPIO

Building

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

gnatmake mytest.adb

Usage

See gpio.ads 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.

Requirements

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+.