2

I'm trying to read a text file (has numeric values) from SD card. The values in the file like this

87 512
255 

I need to read 87 in ch1 and 512 in ch2 and 255 in ch3.

Why did I get on 'SKIP_NONE' 'SKIP_WHITESPACE' was not declared in this scope?

int ch1 = in_file.parseInt(SKIP_WHITESPACE);
Serial.printf("First = %d \n",ch1);

int ch2 = in_file.parseInt(SKIP_NONE, '\n');
Serial.printf("Second = %d \n",ch2);

int ch3 = in_file.parseInt();
Serial.printf("Third = %d \n",ch3);
4
  • 1
    What Arduino are you compiling for? What core version are you using? Sep 18 at 20:03
  • 1
    Can I know why the -1 ??!!!
    – stella
    Sep 18 at 20:16
  • Why the -1? Because some people... (fill in the blanks). I just corrected the transgression by upvoting your question. Why? Because it's a good question, and a downvote without a helpful comment serves no purpose except to discourage you, and that doesn't help anyone and only hurts the community. Sep 19 at 4:53
  • 2
    Ignore the downvotes. People are allowed to downvote, and they are not required to give a reason. Just ignore them. I'm a moderator and I get downvoted. :P
    – Nick Gammon
    Sep 19 at 4:58

1 Answer 1

3

These symbols were introduced in the Arduino AVR core 1.6.7, in December 2015. You can find them in Stream.h. They are probably defined in other cores too.

For some reason, the Teensy cores do not define them. You may consider filing an issue in their GitHub project.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.