Go Down

Topic: Twitter World Mood Light (Read 1 time) previous topic - next topic

kdyches17

This is an amazing project and I love the concept. However I cannot for the life of me get this thing to work. It's been over a year and I've gotten the guts to try again.

Here is the error I keep getting.

worldmood2:35: error: 'Serial' was not declared in this scope
worldmood2.cpp: In function 'void setup()':
worldmood2:190: error: 'Serial' was not declared in this scope
worldmood2.cpp: In function 'void loop()':
worldmood2:210: error: 'Serial' was not declared in this scope

This is what the errors are attached to:

Quote

TwitterParser twitterSearchParser(Serial, TWEETS_PER_PAGE);



I'm using Steve Hobleys version of code and the wishield

Thanks Guys

PaulS

That one snippet of code, completely out of context, isn't of any use in helping you solve your problem.

However, the Serial object is declared in HardwareSerial.h, which is included, indirectly, in sketches, but may not be being included in your cpp file.

kdyches17

Do I need to include that into my sketch by doing the #include thing or do i need to add it to some .cpp file? im very new at this, sorry for the noobieness

Thanks for the help

PaulS

Quote
Do I need to include that into my sketch by doing the #include thing

No, you need to include it in the cpp file that is failing to compile.

jdonavan

Make sure you're including wprogram.h in your cpp file.

Go Up