Pages: [1]   Go Down
Author Topic: TVout + Serial Advice.  (Read 364 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, has anyone had success with the TVoutBeta1.zip library, and the example sketch NTSCserialTerm.pde??????  smiley-confuse

I am attempting to use the Arduino to output a value to a small 7" monitor using a coaxial RCA cable.

I am able to use the simple DemoNTSC.pde correctly > the code runs fine, and displays on screen.

When I try to verify NTSCserialTerm.pde, I get errors:

NTSCserialTerm:5: error: 'TVout' does not name a type
NTSCserialTerm:6: error: 'pollserial' does not name a type
NTSCserialTerm.pde: In function 'void setup()':
NTSCserialTerm:9: error: 'TV' was not declared in this scope
NTSCserialTerm:9: error: '_NTSC' was not declared in this scope
NTSCserialTerm:10: error: 'font6x8' was not declared in this scope
NTSCserialTerm:13: error: 'pserial' was not declared in this scope
NTSCserialTerm.pde: In function 'void loop()':
NTSCserialTerm:17: error: 'pserial' was not declared in this scope
NTSCserialTerm:18: error: 'TV' was not declared in this scope

Code:
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());
  }
}

If anyone can help this would be really kind.  smiley

* TVoutBeta1.zip (37 KB - downloaded 9 times.)
Logged

Pages: [1]   Go Up
Jump to: