examples/vga-scope.cpp
void isr_porch(void) {
    VGA_H_HIGH;
    y++;
    val = map(analogRead(ANALOG_PIN), 0, 4095, 0, x_max);
    if (y >= 523) {
        y = 1;
        v_active = true;
        return;
    }
    if (y >= 492) {
        VGA_V_HIGH;
        return;
    }
    if (y >= 490) {
        VGA_V_LOW;
        return;
    }
    if (y >= 479) {
        v_active = false;
        return;
    }

}
// empirically (and sloppily) determined
empirically (and sloppily) determined
empirically ( and sloppily ) determined
void isr_porch(void) {
    VGA_H_HIGH;
    y++;
    val = map(analogRead(ANALOG_PIN), 0, 4095, 0, x_max);
    if (y >= 523) {
        y = 1;
        v_active = true;
        return;
    }
    if (y >= 492) {
        VGA_V_HIGH;
        return;
    }
    if (y >= 490) {
        VGA_V_LOW;
        return;
    }
    if (y >= 479) {
        v_active = false;
        return;
    }
}
void isr_porch ( void ) { VGA_H_HIGH ; y ++ ; val = map ( analogRead ( ANALOG_PIN ) , 0 , 4095 , 0 , x_max ) ; if ( y >= 523 ) { y = 1 ; v_active = true ; return ; } if ( y >= 492 ) { VGA_V_HIGH ; return ; } if ( y >= 490 ) { VGA_V_LOW ; return ; } if ( y >= 479 ) { v_active = false ; return ; } }
empirically (and sloppily) determined
empirically ( and sloppily ) determined