Go Down

Topic: 'class HardwareSerial' has no member named 'printin' (Read 1 time) previous topic - next topic

Aikomc0304

Hi, I'd like to ask, why is there error that stated:
 'class HardwareSerial' has no member named 'printin'?

Here's my code.



void setup() {
 
  Serial.begin(9600);
 
}

void loop() {
 
  int sensorValue = analogRead(A0);

  Serial.printin(sensorValue);
  delay(100);
}

pert

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. If your browser doesn't show the posting toolbar then you can just manually add the code tags:
[code]// your code is here[/code]
Using code tags and other important information is explained in the How to use this forum post. Please read it.
CCing @232 because I know they love code tags:
It's supposed to be:
Code: [Select]
Serial.println(sensorValue);
not:
Code: [Select]
Serial.printin(sensorValue);
Note the "l", not "i".

Go Up