mbed blinky for LPCXpresso1769 (OM13085)
Dependencies: mbed-dev-lpcx1769
mbed blinky program for LPCXpresso1769 (OM13085)
- Core clock is 120MHz
- Fixed LEDx definitions
main.cpp@0:41907a55c079, 2016-04-18 (annotated)
- Committer:
- MACRUM
- Date:
- Mon Apr 18 14:28:43 2016 +0000
- Revision:
- 0:41907a55c079
mbed blinky for LPCXpresso1769 (OM13085)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MACRUM | 0:41907a55c079 | 1 | #include "mbed.h" |
MACRUM | 0:41907a55c079 | 2 | |
MACRUM | 0:41907a55c079 | 3 | DigitalOut myled(LED1, 1); |
MACRUM | 0:41907a55c079 | 4 | Serial pc(USBTX, USBRX); |
MACRUM | 0:41907a55c079 | 5 | |
MACRUM | 0:41907a55c079 | 6 | int main() |
MACRUM | 0:41907a55c079 | 7 | { |
MACRUM | 0:41907a55c079 | 8 | pc.printf("Hello, LPCXpresso1769\n"); |
MACRUM | 0:41907a55c079 | 9 | pc.printf("SystemCoreClock = %d\n", SystemCoreClock); |
MACRUM | 0:41907a55c079 | 10 | |
MACRUM | 0:41907a55c079 | 11 | while(1) { |
MACRUM | 0:41907a55c079 | 12 | myled = !myled; |
MACRUM | 0:41907a55c079 | 13 | wait(0.2); |
MACRUM | 0:41907a55c079 | 14 | } |
MACRUM | 0:41907a55c079 | 15 | } |