This program is the simple test program that students will use to ensure they can program the FRDM-KL46Z developer board.

Dependencies:   mbed

Committer:
mattshuman
Date:
Fri Aug 12 21:36:32 2016 +0000
Revision:
0:1a4409fd59d6
Child:
1:a54d88ce664d
Initial commit.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mattshuman 0:1a4409fd59d6 1 #include "mbed.h"
mattshuman 0:1a4409fd59d6 2
mattshuman 0:1a4409fd59d6 3 //DigitalOut gpo(D0);
mattshuman 0:1a4409fd59d6 4 DigitalOut led(LED_RED);
mattshuman 0:1a4409fd59d6 5
mattshuman 0:1a4409fd59d6 6 int main()
mattshuman 0:1a4409fd59d6 7 {
mattshuman 0:1a4409fd59d6 8 while (true) {
mattshuman 0:1a4409fd59d6 9 //gpo = !gpo; // toggle pin
mattshuman 0:1a4409fd59d6 10 led = !led; // toggle led
mattshuman 0:1a4409fd59d6 11 wait(0.5f);
mattshuman 0:1a4409fd59d6 12 }
mattshuman 0:1a4409fd59d6 13 }