When using the Video Experimenter, you have to enable overlay capability with some special code. This is demonstrated in all the example projects like: the overlay example
Try this code for your sketch. Note the initOverlay() function and the ISR(INT0_vect) function. They are required.
#include "TVout.h"
#include "fontALL.h"
TVout TV;
void setup()
{
TV.begin(NTSC,90,40);
initOverlay();
TV.select_font(font6x8);
}
// 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()
{
TV.set_cursor(0,6);
TV.print("XXXXX");
delay(60);
}
-
This reply was modified 7 years, 12 months ago by Michael.