mohammad shokri
/
mbed_blinky
blink leds
main.cpp
- Committer:
- m_online3710
- Date:
- 2014-04-17
- Revision:
- 0:1d9e68d929a1
File content as of revision 0:1d9e68d929a1:
#include "mbed.h" // LED1 = P1.18 LED2 = P1.20 LED3 = P1.21 LED4 = P1.23 #define LED_MASK 0x0000000F #define LED_MASK1 0x000000F0 PortOut ledport(Port2, 0x000000FF); int main() { while(1) { ledport = LED_MASK; wait(1); ledport = LED_MASK1; wait(1); } }