![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Testing blinky with museduino with KL-46Z
Fork of blink_kl46z by
main.cpp
- Committer:
- bomalley
- Date:
- 2015-03-11
- Revision:
- 1:c194fc5d98bd
- Parent:
- 0:e23fffd4b9a7
File content as of revision 1:c194fc5d98bd:
#include "mbed.h" #define LEDON false #define LEDOFF true // blinky using the museduino board float blinks[]={0.700, 1.000}; DigitalOut outPin(PTC9); int ledState = LEDON; //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. outPin.write(ledState); wait(blinks[ledState]); } }