Justin Jordan
/
MAX32600MBED_mbedlib_Blinky
Blinky program using MBED2.0, mbed classic, for the MAX32600MBED platform
main.cpp@0:5c13f43865fb, 2017-02-14 (annotated)
- Committer:
- j3
- Date:
- Tue Feb 14 18:50:22 2017 +0000
- Revision:
- 0:5c13f43865fb
init commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
j3 | 0:5c13f43865fb | 1 | /****************************************************************************** |
j3 | 0:5c13f43865fb | 2 | * MIT License |
j3 | 0:5c13f43865fb | 3 | * |
j3 | 0:5c13f43865fb | 4 | * Copyright (c) 2017 Justin J. Jordan |
j3 | 0:5c13f43865fb | 5 | * |
j3 | 0:5c13f43865fb | 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
j3 | 0:5c13f43865fb | 7 | * of this software and associated documentation files (the "Software"), to deal |
j3 | 0:5c13f43865fb | 8 | * in the Software without restriction, including without limitation the rights |
j3 | 0:5c13f43865fb | 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
j3 | 0:5c13f43865fb | 10 | * copies of the Software, and to permit persons to whom the Software is |
j3 | 0:5c13f43865fb | 11 | * furnished to do so, subject to the following conditions: |
j3 | 0:5c13f43865fb | 12 | |
j3 | 0:5c13f43865fb | 13 | * The above copyright notice and this permission notice shall be included in all |
j3 | 0:5c13f43865fb | 14 | * copies or substantial portions of the Software. |
j3 | 0:5c13f43865fb | 15 | |
j3 | 0:5c13f43865fb | 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
j3 | 0:5c13f43865fb | 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
j3 | 0:5c13f43865fb | 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
j3 | 0:5c13f43865fb | 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
j3 | 0:5c13f43865fb | 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
j3 | 0:5c13f43865fb | 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
j3 | 0:5c13f43865fb | 22 | * SOFTWARE. |
j3 | 0:5c13f43865fb | 23 | ******************************************************************************/ |
j3 | 0:5c13f43865fb | 24 | |
j3 | 0:5c13f43865fb | 25 | |
j3 | 0:5c13f43865fb | 26 | #include "mbed.h" |
j3 | 0:5c13f43865fb | 27 | |
j3 | 0:5c13f43865fb | 28 | |
j3 | 0:5c13f43865fb | 29 | int main() |
j3 | 0:5c13f43865fb | 30 | { |
j3 | 0:5c13f43865fb | 31 | DigitalOut led(LED1, 1); |
j3 | 0:5c13f43865fb | 32 | |
j3 | 0:5c13f43865fb | 33 | while(1) |
j3 | 0:5c13f43865fb | 34 | { |
j3 | 0:5c13f43865fb | 35 | led = !led; |
j3 | 0:5c13f43865fb | 36 | wait(0.1); |
j3 | 0:5c13f43865fb | 37 | } |
j3 | 0:5c13f43865fb | 38 | } |