ArduinoProjectHandbook Code -- Project 6

void setup()
{
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);

Serial.pinMode(9600); //Initiate serial connection with IDE for
//debugging and so on

Error Message: 'class HardwareSerial' has no member named 'pinMode'

I can not figure out the error message above -- any help would be greatly appreciated.

Serial.pinMode(9600); <-----<<<<

Serial.begin(9600);

https://www.arduino.cc/en/serial/begin

.

Error messages are usually longer than that. I'll bet your code is longer too. Is this a sketch right out of a book? If so, then re-type it in, as it looks as if you got something wrong. Maybe the last line of your snippet should read "Serial.begin(9600);" instead of what you posted.

Edit - dang Larry ... great minds, eh? :wink: