Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Aug 2014 15:43:41 +0300
From:      "Sulev-Madis Silber (ketas)" <madis555@hot.ee>
To:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: Driving WS2801 and similar LED controllers with BBB
Message-ID:  <53EE007D.2080702@hot.ee>
In-Reply-To: <20140814183004.GP83475@funkthat.com>
References:  <53ECEFBE.6020500@hot.ee> <20140814183004.GP83475@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2014-08-14 21:30, John-Mark Gurney wrote:
> Sulev-Madis Silber (ketas) wrote this message on Thu, Aug 14, 2014 at 20:19 +0300:
>> Hello.
>>
>> Maybe someone else works on things like this? I basically know how those
>> are controlled, however I'm unsure what should I choose. Maybe SPI,
>> maybe I should bitbang GPIO for clock / data? Last should work with that
>> specific model (WS2801). Others use weird protocols (or "protocols"). I
>> guess I should just try something. I just let people know that I'm
>> working on that. I won't be surprised if I'm the first one to get it
>> working.
> 
> I'd look at using SPI...  From what I've read on the WS2801, SPI
> will do exactly what you need to do, and be the most straight forward
> solution...
> 

Only problem is, I seem to be only one who wants to use SPI from
userland... No documentation, no code. I hope that it even works in BBB.
Maybe I'll try bitbanging GPIO from Perl first. That I understand fully,
at least. And that controller seems to allow one to be sloppy or slow.


>> I'm also aware that this platform contains PRU's, which are maybe better
>> for this task. Though, that seems like even more complex task. Like how
>> to get code compiled for that (there seems to be one open way for C),
>> how to get it running there and how to
>> assign IO pins.
> 
> The PRU is probably more complicated than you need compared to using
> SPI...
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53EE007D.2080702>