On Sun, 24 Jul 2016 10:29:04 -0400, "James Richters" <ja...@productionautomation.net> wrote:
>Bo, >I also have a raspberry pi project.. I got a hifi-berry card for it and it >is streaming audio to a central audio system, I'm using VLC media player and >an app on my cell phone to control it, I have not made use of the GPIO on >them yet, but I would really like to learn how this can be accomplished with >FPC, since I am more familiar with pascal than any other language, it would >be great to learn how to do this! I have a particular application in mind. >I have a relay board that will turn relays on and off with TTL level >signals, what I wish to do is have a remote way to turn certain amplifiers >on and off. There are 24 amplifiers going to 44 speakers (4 are >subwoffers) in and around my house, sometimes I'll want just downstairs and >outside amps on, other times I'll want just one room on, or all amps on.... >etc. The amps are all in my crawlspace under the first floor, and that's >where the raspberry pi is. I also have some volume control chips that are >controlled by clocking data into them, I could chain them all together and >be able to control all of them with just one clock and one data bit. >Any advice on how to get started on controlling GPIO with a raspberry pi >with FPC would be greatly appreciated! > It has been discussed over at the Raspberry Pi forum. Basically the solution is to use a modified version of teh PiGpio.pas driver. Here are a few threads where I was involved: https://www.raspberrypi.org/forums/viewtopic.php?p=826439#p826439 https://www.raspberrypi.org/forums/viewtopic.php?p=826888#p826888 I have attached a zipped version of the PiGpio.pas driver file for you. -- Bo Berglund Developer in Sweden _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal