GPIO program for K64F boards
Dependencies: mbed DigitDisplay LED_Bar
Revision 0:880457ab5a77, committed 2019-04-18
- Comitter:
- Niranjan_ravi
- Date:
- Thu Apr 18 19:24:12 2019 +0000
- Child:
- 1:04022340010b
- Child:
- 2:a1e7d7fa0db2
- Commit message:
- GPIO program for K64F
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Apr 18 19:24:12 2019 +0000 @@ -0,0 +1,19 @@ +#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); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Apr 18 19:24:12 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187 \ No newline at end of file