Serial.printIn is NOT working for me, what's wrong in this sketch?

Rewriting a code to to effeciency problems, and I cannot get Serial.printIn to work.
Is it because there is stuff I'll be adding at a later date just sitting in there?

// ------LIBRARIES
#include <Scheduler.h>
#include <thermistor.h>
#include <NewPing.h>

// ------ULTRASONIC SENSOR
#define TrigPin 13
#define EchoPin 12
#define MaxDistance 200



//Thermistor Temp(0)

NewPing sonar(TrigPin, EchoPin, MaxDistance);
void setup() {
  Serial.begin(9600);
  Scheduler.startLoop(loop2);
  Scheduler.startLoop(loop3);
}

void loop() {
  delay(50);
  int uS = sonar.ping();
           Serial.print("Ping: ");
           Serial.print(uS / US_ROUNDTRIP_CM);
           Serial.printIn(" CM");
}

void loop2() {

}

void loop3() {

}

yield();[/code
void setup() {
  Serial.begin(9600);
  Serial.println (F("ready"));
// etc

And now?

AWOL:

void setup() {

Serial.begin(9600);
  Serial.println (F("ready"));
// etc



And now?
error: expected constructor, destructor, or type conversion before ';' token

 yield();

        ^

exit status 1
'class HardwareSerial' has no member named 'printIn'

Well, do you want println or the error print[color=red]I[/color]n?

Pretty straight forward... Spelling (and case) matterz!

pYro_65:
Well, do you want println or the error print[color=red]I[/color]n?

Pretty straight forward... Spelling (and case) matterz!

IT'S SUPPOSED TO BE A L?
I didn't realize that...

pYro_65:
Well, do you want println or the error print[color=red]I[/color]n?

Pretty straight forward... Spelling (and case) matterz!

I now get the error

WARNING: library Scheduler claims to run on [sam architecture(s) and may be incompatible with your current board which runs on samd] architecture(s).
C:\Users\TERRAN~1\AppData\Local\Temp\cc7pNMN2.s: Assembler messages:

C:\Users\TERRAN~1\AppData\Local\Temp\cc7pNMN2.s:46: Error: constant value required

exit status 1
Error compiling.

And as for the yield(); error, forgot to close with a bracket :stuck_out_tongue:

I still need help resolving this

ArduinoDogs:
I still need help resolving this

You cannot call a function outside of a function unless it is used to initialize a variable declaration.

Where do you intend yield() to be called, inside loop?

Hi,

library Scheduler claims to run on [sam architecture(s) and may be incompatible with
your current board which runs on samd] architecture(s).

What Arduino board are you using, that error looks? ? ? ? like you have a compatibility problem.
What IDE version?

Thanks.. Tom...... :slight_smile: