Example program for the C027Interface

Dependencies:   C027Interface NetworkSocketAPI mbed

Committer:
sam_grove
Date:
Mon May 11 05:55:12 2015 +0000
Revision:
0:1984a177ff56
Child:
2:7283ce112304
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sam_grove 0:1984a177ff56 1 /* NetworkSocketAPI Example Program
sam_grove 0:1984a177ff56 2 * Copyright (c) 2015 ARM Limited
sam_grove 0:1984a177ff56 3 *
sam_grove 0:1984a177ff56 4 * Licensed under the Apache License, Version 2.0 (the "License");
sam_grove 0:1984a177ff56 5 * you may not use this file except in compliance with the License.
sam_grove 0:1984a177ff56 6 * You may obtain a copy of the License at
sam_grove 0:1984a177ff56 7 *
sam_grove 0:1984a177ff56 8 * http://www.apache.org/licenses/LICENSE-2.0
sam_grove 0:1984a177ff56 9 *
sam_grove 0:1984a177ff56 10 * Unless required by applicable law or agreed to in writing, software
sam_grove 0:1984a177ff56 11 * distributed under the License is distributed on an "AS IS" BASIS,
sam_grove 0:1984a177ff56 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
sam_grove 0:1984a177ff56 13 * See the License for the specific language governing permissions and
sam_grove 0:1984a177ff56 14 * limitations under the License.
sam_grove 0:1984a177ff56 15 */
sam_grove 0:1984a177ff56 16
sam_grove 0:1984a177ff56 17 #include "mbed.h"
sam_grove 0:1984a177ff56 18
sam_grove 0:1984a177ff56 19 DigitalOut myled(LED1);
sam_grove 0:1984a177ff56 20
sam_grove 0:1984a177ff56 21 int main()
sam_grove 0:1984a177ff56 22 {
sam_grove 0:1984a177ff56 23 while(1) {
sam_grove 0:1984a177ff56 24 myled = 1;
sam_grove 0:1984a177ff56 25 wait(0.2);
sam_grove 0:1984a177ff56 26 myled = 0;
sam_grove 0:1984a177ff56 27 wait(0.2);
sam_grove 0:1984a177ff56 28 }
sam_grove 0:1984a177ff56 29 }