Hi everybody!
I´m new in this forum, so if there´s info missing in my question or this is not the right place just tell me, I´ll be glad to add or change whatever is needed!
I´m using Arduino Uno on my Work order degree to build a electrocardiograph. It works as a ADS1298 (analog-digital converter) and Gameduino2 (TFT) controller.
My program has two main parts, one where anduino reads data from ADS with an Interrupt, and other one where arduino sends this stored data to Gameduino2 to plot them. The protocol used for communication is SPI (arduino Uno has only one SPI bus), and as those 2 devices use different SPI modes I have to make changes "on the fly". It seems to work well with this, the program enters the "plot" function and enters also de "read data" function attached to the interrupt. But that´s all, it does not plot real data I get, it just plots trash.
Does somebody know what happens? or at least give me a clue about what to try? I think I´m having a problem with the Gameduino2 libraries, (I have to call a function named "GD.begin" in my setup), but I can´t fix it anyway!
Thanks a lot!