Bresdin O'Malley
/
blink_kl46z
Testing blinky with museduino with KL-46Z
Fork of blink_kl46z by
Diff: main.cpp
- Revision:
- 1:c194fc5d98bd
- Parent:
- 0:e23fffd4b9a7
diff -r e23fffd4b9a7 -r c194fc5d98bd main.cpp --- 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