Skip to content

jklmnn/wiringPi-Ada

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wiringPi-Ada

This project provides Ada bindings for the wiringPi GPIO library.

The bindings are not complete, currently supported functions are

  • Pi:
    • wiringPiSetup
    • wiringPiSetupGpio
    • wiringPiSetupPhys
    • pinMode
    • digitalWrite
    • digitalRead
  • Serial
    • serialOpen
    • serialClose
    • serialPutchar
    • serialPuts
    • serialDataAvail
    • serialGetchar
    • serialFlush

Build

Shared library

gprbuild -p -P wiringPi.gpr

Example

GPIO

cd example && gprbuild -P gpio.gpr && ./gpio

Serial

cd example && gprbuild -P serial.gpr && ./serial <device> <baud rate>