system
June 12, 2012, 10:47am
1
Ok this is just unbelievable. I download a demo and it just won't compile. I can compile the other TVout demo's except for this one.
#include <TVout.h>
#include <pollserial.h>
#include <fontALL.h>
TVout TV;
pollserial pserial;
void setup() {
TV.begin(_NTSC,184,72);
TV.select_font(font6x8);
TV.println("Serial Terminal");
TV.println("-- Version 0.1 --");
TV.set_hbi_hook(pserial.begin(57600));
}
void loop() {
if (pserial.available()) {
TV.print((char)pserial.read());
}
}
Gives me:
NTSCserialTerm.pde:-1: error: 'pollserial' does not name a type
NTSCserialTerm.cpp: In function 'void setup()':
NTSCserialTerm.pde:-1: error: 'pserial' was not declared in this scope
NTSCserialTerm.cpp: In function 'void loop()':
NTSCserialTerm.pde:-1: error: 'pserial' was not declared in this scope
system
June 12, 2012, 10:58am
2
Have you got the "pollserial" library?
It isn't one I recognise.
system
June 12, 2012, 11:00am
3
I download a demo
Last time I checked, there were at least a dozen places (tongue firmly in cheek) you could have downloaded the demo from.
Give us a clue which one of those places you got the demo from.
The usual problems are that you didn't include all the error messages (the one that says pollserial.h couldn't be found) or that you are using a non-Microslop operating system where case matters.
Or, it is a crappy example...
I thought poll serial was for the video experimenter shield.
I couldn't get it to work either, so I asked Mr Nootropic!
You need the TVout, PollSerial and TVoutfonts in your library folder.
Then it will work.
system
June 12, 2012, 11:04am
5
Well I downloaded the library here:Google Code Archive - Long-term storage for Google Code Project Hosting.
I got everything in my tv out folder
Edit: tone(frequency); Doesn't work either :S
system
June 12, 2012, 12:44pm
7
dxw00d:
Edit: tone(frequency); Doesn't work either :S
Meaning what, exactly?
Well it has to produce oscillation on pin 11.
system
June 12, 2012, 12:47pm
8
Well it has to produce oscillation on pin 11.
In what context? I have had tone() working with no problems.
this almost worked.minus the
"error: conflicting return type specified for 'virtual void pollserial::write(uint8_t)'
virtual void write(uint8_t);"
#include <TVout.h>
#include <pollserial/pollserial.h>
#include <TVoutfonts/fontALL.h>
TVout TV;
pollserial pserial;
void setup() {
TV.begin(_NTSC,184,72);
TV.select_font(font6x8);
TV.println("Serial Terminal");
TV.println("-- Version 0.1 --");
TV.set_hbi_hook(pserial.begin(57600));
}
void loop() {
if (pserial.available()) {
TV.print((char)pserial.read());
}
}
system
April 17, 2017, 10:57am
10
this almost worked.minus the
"error: conflicting return type specified for 'virtual void pollserial::write(uint8_t)'
virtual void write(uint8_t);"
If you are going to resurrect a thread that has seen no action for 5 years, you could have at least googled that error message first.
dev_1
April 17, 2017, 12:33pm
11
There is an updated pollserial in this thread