Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wiringPi

> On Jul 9, 2018, at 6:34 AM, starsnet%yandex.ru@localhost wrote:
> hi, all)
> no one ported wiringpi to netbsd?
> I try to compile - I get a lot of mistakes.
> or tell me some library for working with gpio on netbsd, similar to wiringPi.

NetBSD already has a pretty easy to use GPIO interface.  If you want an example of how to use it, I can point you to some code I wrote for sending data to a shift register:


It's based on ioctl(2).  I've considered writing a wrapper library around it, but as you can see from the example code, it's already pretty easy to use.

-- thorpej

Home | Main Index | Thread Index | Old Index