Go Down

Topic: tvout help with serial (Read 6098 times) previous topic - next topic

YoshiFan501

#75
Jul 05, 2012, 10:18 pm Last Edit: Jul 06, 2012, 03:33 am by YoshiFan501 Reason: 1
i know what should help me.

the original non-working code that came with the library
Code: [Select]
#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());
  }
}

and the errors that followed
In file included from NTSCserialTerm.cpp:2:
C:\Program Files\arduino-1.0.1\libraries\pollserial/pollserial.h:46: error: conflicting return type specified for 'virtual void pollserial::write(uint8_t)'
C:\Program Files\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:48: error:   overriding 'virtual size_t Print::write(uint8_t)'

Go Up