Go to advanced search

by Aprel
Fri Jan 23, 2015 1:56 am
Forum: C/C++
Topic: Write data to gpio at 44.1 kbps
Replies: 2
Views: 746

Re: Write data to gpio at 44.1 kbps

then if the value is higher than some threshold then set the IO line high else set it low. While( more samples ) { [// ...] } I know this code is simplified, but it exemplifies where I start to get lost coding this. This while loop will run as fast as the CPU will allow, but in my case, I need 4410...
by Aprel
Thu Jan 22, 2015 6:58 am
Forum: C/C++
Topic: Write data to gpio at 44.1 kbps
Replies: 2
Views: 746

Write data to gpio at 44.1 kbps

I'm working on a lighting application based on audio, similar to a Christmas light setup with music. I'm going to set up the pi to drive a relay. The basic idea is I want the relay open during quiet parts of the audio and closed during loud parts. Here's the approach I have taken: For each sample in...

Go to advanced search