Duncan57

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Counting frames in a video source #8120
    Duncan57
    Participant

    <blockquote=”Michael”>There is a function pointer called vbi_hook that runs every time a frame ends (in the vertical blanking interval). You can define a function for the vbi_hook and increment a counter in it. If you want to access the counter value from outside an interrupt service routine (e.g. to display it), make sure you declare your counter variable as volatile.
    Or you can increment your counter in the ISR that runs every time a new frame starts: [tt:3j0g3aqq]ISR(TIMER1_OVF_vect)[/tt:3j0g3aqq]
    All this code is in [tt:3j0g3aqq]video_gen.cpp[/tt:3j0g3aqq]

    Thank you, it help me so much!!

    in reply to: Digit display problems #8119
    Duncan57
    Participant

    Hi, did the email that Michael post, still working? thanks

    in reply to: Voice Changer not working #2389
    Duncan57
    Participant

    @gootohell wrote:

    No, an SD card is not fast enough for realtime recording/playback at the same time?

    Yes, it s fast enough to do this, try!!

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