Date: Wed, 20 Aug 2014 21:51:08 -0700 From: Rui Paulo <rpaulo@FreeBSD.org> To: Evandro Nunes <evandronunes12@gmail.com> Cc: freebsd-arm@freebsd.org Subject: Re: HC-SR04 and FreeBSD Message-ID: <5D802942-2D0F-4324-8212-C2871EEB6327@FreeBSD.org> In-Reply-To: <CAG4HiT6wwbmSA_KWsgHOqdeZVOCUsdhRxDhMubvkG1tEwVH5Sw@mail.gmail.com> References: <CAG4HiT6wwbmSA_KWsgHOqdeZVOCUsdhRxDhMubvkG1tEwVH5Sw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 20, 2014, at 21:48, Evandro Nunes <evandronunes12@gmail.com> wrote: > hello, > > ive got a ultrasonic sensor model HC-SR04 and a beaglebone black as well as > a cubieboard2, both running FreeBSD 11 built from crochet and wiki > instructions > > thanks to the help from loos@ I could manage to use a 5v relay with BBB > now, how can I read data from HC-SR04 sensor? do we have any library > available? or do we have any GPIO utility to do that? > btw how can I read values from GPIO pins when they are set to input? I wrote a library to handle GPIO on FreeBSD: https://bitbucket.org/rpaulo/libgpio You can also use the gpioctl utility in FreeBSD to read values. -- Rui Paulo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5D802942-2D0F-4324-8212-C2871EEB6327>