Video Greeting Card - Arduino Style!

Okay, so now I am running into problems... it seems the TVout Library does not play nice with Serial communications, causing dropped characters from the input. I assume this is because of an interrupt issue.

Once TV rendering has begun, serial data transfers become unreliable. The idea was to accept data in via serial and display- but you can't do both. Pausing the rendering does nothing to improve.

You said you had a term program working? what am I doing wrong here?

#include <TVout.h>

TVout TV;
char indata[256]="test";
int i,cnt,foo,t;

void setup()  {
//  TV.begin(_NTSC,128,96);
  Serial.begin(19200);
}

void loop()
{
  cnt=Serial.available();
  
  if (cnt>0) {
      delay(100);
      foo=Serial.available();
      for (t=0; t<=foo-1; t++) {
        indata[i]=Serial.read();
        i=i+1;
        };
  indata[i]=0;
  Serial.print(i);
  Serial.print(" bytes: ");
  Serial.println(indata);
  }
// TV.print_str(0,0,indata);
};

or is there something else going on?

If I remove the commented out render references, serial data gets garbled and lost. pause_render() does not change anything. Thoughts?

[UPDATE]

Looks like it is indeed a lib/serial conflcit involving interrupts. However, the new version of the lib to be released will address these issues. Since the lib isn't quite ready for "prime time" per the author, In the meantime, I'll work on a workaround.. which will be forward compatible. Just know that the new lib will make my workaround kind of obsolete...