Perry

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: clearing tv.print #11814
    Perry
    Participant

    That makes a lot of sense. I will give that a go.

    Thanks very much.

    in reply to: clearing tv.print #11776
    Perry
    Participant

    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);
    }

    }

    in reply to: Weird behavior with SoftwareSerial and pin choices #11762
    Perry
    Participant

    Thanks for the prompt response. I will look into the hardware serial option.

Viewing 3 posts - 1 through 3 (of 3 total)