What I think you're looking for is 'threads'. Specifically Posix threads which are supported by Linux, and I have included some simple helpers to make thing easy in wiringPi too.bass0324 wrote:So let me start off by saying I am new to compiling in C, but I have programmed in C before. I am looking to interface my Raspberry Pi with a LED Matrix display I created for use with a an Arduino. I have a full code for the Arduino (with much help from a friend) that works great with the matrix, but I would really like to control it from my Raspberry Pi. I have installed both wiringPi and BCM2835 C tools on my Raspberry Pi and have ported my Arduino code into both, which can be seen here (https://github.com/bass0324/LED_MATRIX). Now in my Arduino code, I was able to use the timer1 interrupt such that my drawMap() command can occur in exact timed intervals. Is there a way this can also be done with the Raspberry Pi? Also, for those who have C experience and have taken a look at my code, is there anything that I can do better (i.e. seperate my functions from the main file into another one?) and also how will I go about compiling this code and adding it to my pi to act as I want it to? Thanks for the help.
Users browsing this forum: No registered users and 13 guests