- Sat Aug 13, 2011 5:40 pm
#131772
Good Day,
I'm trying to put data being recieved from a 9DOF sensor (http://www.sparkfun.com/products/9623) thru a serial connection to a Arduino Mega 2560 into a variable so I can later write it to an SD Card.
The following code is contained in the void loop() {
Looking for something on the lines of
Thanks
Don Anderson
I'm trying to put data being recieved from a 9DOF sensor (http://www.sparkfun.com/products/9623) thru a serial connection to a Arduino Mega 2560 into a variable so I can later write it to an SD Card.
The following code is contained in the void loop() {
Code: Select all
How would I break up Serial.print(Serial1.read(), BYTE); so I can assign the data in (Serial1.read(), BYTE) to a string variable? if(Serial1.available() > 0)
Serial.print(Serial1.read(), BYTE);
Looking for something on the lines of
Code: Select all
But this does not reproduce the same results as if(Serial1.available() > 0)
strData = (Serial1.read(), BYTE);
Serial.print(strData)
Code: Select all
Any help with this would be appreciated. if(Serial1.available() > 0)
Serial.print(Serial1.read(), BYTE);
Thanks
Don Anderson