GPIO program for K64F boards

Dependencies:   mbed DigitDisplay LED_Bar

main.cpp

Committer:
Niranjan_ravi
Date:
2019-04-18
Revision:
0:880457ab5a77
Child:
1:04022340010b
Child:
2:a1e7d7fa0db2

File content as of revision 0:880457ab5a77:

#include "mbed.h"
 
DigitalIn enable(PTE24);
Serial      pc(USBTX, USBRX);
 
int main() {
    pc.baud(115200);
    while(1) {
        pc.printf("its inside while loop now\n");
        if(!enable) {
            pc.printf("led is on\n");
        }
        else
        {
            pc.printf("false\n");
        }
        wait(0.25);
    }
}