Hello,
Just wondering if anyone might have the patience to help me with my novice code
I am reading from a 12bit ADC which is connected to a 4D systems display but because the 4D systems display doesnt support floating point I have decided to send to an Arduino, do the calculation and send back again (this is a one off project)
I know it sounds a round about way but done alot of coding with the 4d systems and hav'nt the time to change everything to Arduino
Everything reads back to the display i.e 0-15 for the ADC1 and 0-255 for ADC2 and if I comment out the calculations and un-comment the print 2.77 I get 2.77 back to the 4d systems, but in the following code I just get 0
As you can gather I am new to C++ and have tried to include everything under the sun, but I must be making a 'school boy' error here
PS. 4d systems is working fine