Pages: 1 ... 4 5 [6]   Go Down
Author Topic: tvout help with serial  (Read 5418 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 55
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i know what should help me.

the original non-working code that came with the library
Code:
#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)'
« Last Edit: July 05, 2012, 08:33:28 pm by YoshiFan501 » Logged

Pages: 1 ... 4 5 [6]   Go Up
Jump to: