Problem with code

How to fix a code when it says 'serial' was not declared in this scope

Welcome to the forum

Your topic has been moved to the Programming Questions category of the forum as it does not relate directly to IDE 1.x

As to your question, if the error message really says that (why didn't you post it in full ?) then you probably meant to type Serial rather than serial in the sketch (why didn't you post that too? )

Please post your sketch, using code tags when you do

In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.