Thank you again for the prompt reply.
I get no overlay on the screen when I add a tv.fill(0) entry (currently commented out at the bottom).
My code is:
`#include <TVout.h>
#include <fontALL.h>
#define W 136
#define H 96
TVout tv;
char s[26];
void setup() {
tv.begin(NTSC, W, H);
initOverlay();
tv.select_font(font6x8);
tv.fill(0);
Serial.begin(19200);
}
// Initialize ATMega registers for video overlay capability.
// Must be called after tv.begin().
void initOverlay() {
TCCR1A = 0;
// Enable timer1. ICES0 is set to 0 for falling edge detection on input capture pin.
TCCR1B = _BV(CS10);
// Enable input capture interrupt
TIMSK1 |= _BV(ICIE1);
// Enable external interrupt INT0 on pin 2 with falling edge.
EIMSK = _BV(INT0);
EICRA = _BV(ISC01);
}
// Required to reset the scan line when the vertical sync occurs
ISR(INT0_vect) {
display.scanLine = 0;
}
void loop() {
if (Serial.available())
{
sprintf(s,”Motor speed:%i”,Serial.read());
tv.print(0, 0, s);
// tv.fill(0);
}
}