Arduino multiple file programs

In writing the blinky-belt pattern software, I encountered some difficulty with using Serial.print and other library routines.

#include “WProgram.h”

at the top of the secondary .cpp files will fix the link error that will occur without it.

error: ‘Serial’ was not declared in this scope

This entry was posted in Arduino, Software and tagged . Bookmark the permalink.

Leave a Reply