![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Testing blinky with museduino with KL-46Z
Fork of blink_kl46z by
Revision 1:c194fc5d98bd, committed 2015-03-11
- Comitter:
- bomalley
- Date:
- Wed Mar 11 19:54:53 2015 +0000
- Parent:
- 0:e23fffd4b9a7
- Commit message:
- testing museduino with KL-46Z
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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