Go Down

Topic: Compile error : 'OUTPUT' was not declared in this scope (Read 4 times) previous topic - next topic

WizenedEE

Well you could try using the show_graph function instead of Serial.print

Depending on several factors, you might also want to write a quick program on your PC to read the serial port and make the graph for you. That would make the serial communication be about ten times faster than that show_graph function.

dkl65

If you are using Arduino 1.0 and newer, you should do this at the top of the .cpp file, so it is compatible with more versions of the IDE:
Code: [Select]

#if ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif


@TCWORLD: What is the difference between #import and #include? Isn't #include more often used? I never seen #import before.

WizenedEE

@TCWORLD: What is the difference between #import and #include? Isn't #include more often used? I never seen #import before.


import is often used in other programming languages like python and java. It's easy to mix them up.

Aparently, #import was a gcc extension, but it's depreciated now. Use #include.

Grumpy_Mike

Quote
Where does this go?

How can we tell you if you never posted ALl your code.

Tom Carpenter

Sorry about that, i meant #include. I have been doing quite a bit of Objective-C stuff for an iPhone of late, and they use #import.
~Tom~

Go Up