GPIO program for K64F boards
Dependencies: mbed DigitDisplay LED_Bar
Diff: main.cpp
- Revision:
- 1:04022340010b
- Parent:
- 0:880457ab5a77
--- a/main.cpp Thu Apr 18 19:24:12 2019 +0000 +++ b/main.cpp Wed Feb 05 19:08:07 2020 +0000 @@ -1,19 +1,11 @@ #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"); + +Serial pc(USBTX,USBRX); + +int main() +{ + while(1) + { + pc.printf("hello"); } - else - { - pc.printf("false\n"); - } - wait(0.25); - } -} \ No newline at end of file + } \ No newline at end of file