I am looking for programming examples written in Ada (gnat) to access GPIO. I just started using a RPi3 with Raspbian, works fine. Then installed the gnat compiler and my first programs (simple tests with textual input/output via console) compile/link and execute fine. Now I want to access the GPIO. Any suggestions ? PS: Don't suggest to use another programming language :) I want to learn Ada and I have experience in programming in COBOL on BS2000, MS-Visual Basic on Windows, C on Solaris and Arduino, and some more...
Asked
Active
Viewed 3,505 times
1 Answers
2
I'll mention my pigpio library and daemon as the daemon was designed partly with other language use in mind.
You can manipulate the GPIOs from Ada by using the socket interface.
If you want a pure Ada interface have a look at http://abyz.me.uk/rpi/pigpio/examples.html#Misc_tiny_gpio which shows the sort of code you'll need to port to Ada.