
#define GREEN_LED       0x01    // Green LED is on bit 0 of P1

#define SHORT_DELAY     10000   // Tweak these numbers until
#define LONG_DELAY      20000   //  blinking pattern is visible

void delay(int count) {
    while (--count) {
    /*  Add junk here as needed to make the delays longer */
        }
    }

void blip() {                   // Quickly blip the LED once
    P1 &= ~GREEN_LED;
    delay(SHORT_DELAY);
    P1 |=  GREEN_LED;
    delay(SHORT_DELAY);
    }    

main() {
    while (1) {                 // Repeat forever
        blip();                 // Blip the LED
        blip();                 // Blip it again
        delay(LONG_DELAY)       // Long delay between blip pairs
        }                       // End 'repeat forever'
    }                           // End main()
