Testing blinky with museduino with KL-46Z

Dependencies:   mbed

Fork of blink_kl46z by Stanley Cohen

Revision:
1:c194fc5d98bd
Parent:
0:e23fffd4b9a7
--- a/main.cpp	Thu Aug 14 21:18:38 2014 +0000
+++ b/main.cpp	Wed Mar 11 19:54:53 2015 +0000
@@ -2,18 +2,20 @@
 #define LEDON false
 #define LEDOFF true
 
-// slightly more interesting blinky 140814 sc
+// blinky using the museduino board
 
-float blinks[]={0.200, 0.700};
+float blinks[]={0.700, 1.000};
+DigitalOut outPin(PTC9); 
 int ledState = LEDON;
-DigitalOut greenColor(LED_GREEN);
-DigitalOut redColor(LED_RED);
+//DigitalOut greenColor(LED_GREEN);
+//DigitalOut redColor(LED_RED);
 
 int main() {
     while(true) {
         ledState = !ledState; // Flip the general state
-        redColor = ledState;
-        greenColor = !ledState;// flip state but don't store it.
+        //redColor = ledState;
+        //greenColor = !ledState;// flip state but don't store it.
+        outPin.write(ledState);
         wait(blinks[ledState]);
     }
 }
\ No newline at end of file