nikunj agrawal / Mbed 2 deprecated frdm_gpio

Dependencies:   mbed

Committer:
astronikunj
Date:
Wed Dec 03 08:43:45 2014 +0000
Revision:
0:47ca96fe741b
HGJFDYFJ

Who changed what in which revision?

UserRevisionLine numberNew contents of line
astronikunj 0:47ca96fe741b 1 #include "mbed.h"
astronikunj 0:47ca96fe741b 2
astronikunj 0:47ca96fe741b 3 BusOut myleds(LED_RED, LED_GREEN);
astronikunj 0:47ca96fe741b 4
astronikunj 0:47ca96fe741b 5 int main() {
astronikunj 0:47ca96fe741b 6 while(1) {
astronikunj 0:47ca96fe741b 7 for(int i=0; i<4; i++) {
astronikunj 0:47ca96fe741b 8 myleds = i;
astronikunj 0:47ca96fe741b 9 wait(3);
astronikunj 0:47ca96fe741b 10 }
astronikunj 0:47ca96fe741b 11 }
astronikunj 0:47ca96fe741b 12 }
astronikunj 0:47ca96fe741b 13