virgini García Antolín
/
Example_Puck_BLE
EXAMPLE_LED1
main.cpp@2:fd3993499377, 2015-04-14 (annotated)
- Committer:
- vikunga
- Date:
- Tue Apr 14 11:37:26 2015 +0000
- Revision:
- 2:fd3993499377
- Parent:
- 0:7dfdd3ae4bd4
example_LED1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vikunga | 0:7dfdd3ae4bd4 | 1 | /** |
vikunga | 0:7dfdd3ae4bd4 | 2 | * Copyright 2014 Nordic Semiconductor |
vikunga | 0:7dfdd3ae4bd4 | 3 | * |
vikunga | 0:7dfdd3ae4bd4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
vikunga | 0:7dfdd3ae4bd4 | 5 | * you may not use this file except in compliance with the License. |
vikunga | 0:7dfdd3ae4bd4 | 6 | * You may obtain a copy of the License at |
vikunga | 0:7dfdd3ae4bd4 | 7 | * |
vikunga | 0:7dfdd3ae4bd4 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
vikunga | 0:7dfdd3ae4bd4 | 9 | * |
vikunga | 0:7dfdd3ae4bd4 | 10 | * Unless required by applicable law or agreed to in writing, software |
vikunga | 0:7dfdd3ae4bd4 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
vikunga | 0:7dfdd3ae4bd4 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
vikunga | 0:7dfdd3ae4bd4 | 13 | * See the License for the specific language governing permissions and |
vikunga | 0:7dfdd3ae4bd4 | 14 | * limitations under the License |
vikunga | 0:7dfdd3ae4bd4 | 15 | */ |
vikunga | 0:7dfdd3ae4bd4 | 16 | #include "mbed.h" |
vikunga | 0:7dfdd3ae4bd4 | 17 | //#define LOG_LEVEL_INFO |
vikunga | 0:7dfdd3ae4bd4 | 18 | DigitalOut myled(LED1); |
vikunga | 0:7dfdd3ae4bd4 | 19 | int main(){ |
vikunga | 2:fd3993499377 | 20 | while(1){ |
vikunga | 0:7dfdd3ae4bd4 | 21 | myled=1; |
vikunga | 2:fd3993499377 | 22 | wait(0.2); |
vikunga | 2:fd3993499377 | 23 | myled=0; |
vikunga | 2:fd3993499377 | 24 | wait(0.2); |
vikunga | 2:fd3993499377 | 25 | |
vikunga | 0:7dfdd3ae4bd4 | 26 | } |
vikunga | 2:fd3993499377 | 27 | } |
vikunga | 2:fd3993499377 | 28 |