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:
Sat Aug 13 08:29:27 2016 +0000
Revision:
1:a54d88ce664d
Parent:
0:1a4409fd59d6
Removed the DigitalOutput that toggled DO.

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 led(LED_RED);
mattshuman 0:1a4409fd59d6 4
mattshuman 0:1a4409fd59d6 5 int main()
mattshuman 0:1a4409fd59d6 6 {
mattshuman 0:1a4409fd59d6 7 while (true) {
mattshuman 0:1a4409fd59d6 8 led = !led; // toggle led
mattshuman 0:1a4409fd59d6 9 wait(0.5f);
mattshuman 0:1a4409fd59d6 10 }
mattshuman 0:1a4409fd59d6 11 }