Blinky program for Lizzy HW.

main.cpp

Committer:
jurica238814
Date:
2018-04-23
Revision:
0:6603328e7c5b

File content as of revision 0:6603328e7c5b:

/*
 *
 */
 
#include "mbed.h"

#define RED             (p31)
#define GREEN           (p2)
#define BLUE            (p3)
#define DELAY_MS        (1000)

DigitalOut red(RED);
DigitalOut green(GREEN);
DigitalOut blue(BLUE);


int main()
{
    while(1)
    {
        red = 1;
        green = 1;
        blue = 1;
        wait_ms(DELAY_MS);
        red = 0;
        green = 0;
        blue = 0;
        wait_ms(DELAY_MS);
    }
}