A neopixel light painting strip

Dependencies:   mbed

Fork of LocalFileSystem_HelloWorld by mbed official

Committer:
mbedAustin
Date:
Fri Mar 27 20:14:46 2015 +0000
Revision:
3:6bf0bf2bbb31
Parent:
0:cc465aef98cf
Added license to main.c file.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbedAustin 3:6bf0bf2bbb31 1 /* mbed Example Program
mbedAustin 3:6bf0bf2bbb31 2 * Copyright (c) 2006-2014 ARM Limited
mbedAustin 3:6bf0bf2bbb31 3 *
mbedAustin 3:6bf0bf2bbb31 4 * Licensed under the Apache License, Version 2.0 (the "License");
mbedAustin 3:6bf0bf2bbb31 5 * you may not use this file except in compliance with the License.
mbedAustin 3:6bf0bf2bbb31 6 * You may obtain a copy of the License at
mbedAustin 3:6bf0bf2bbb31 7 *
mbedAustin 3:6bf0bf2bbb31 8 * http://www.apache.org/licenses/LICENSE-2.0
mbedAustin 3:6bf0bf2bbb31 9 *
mbedAustin 3:6bf0bf2bbb31 10 * Unless required by applicable law or agreed to in writing, software
mbedAustin 3:6bf0bf2bbb31 11 * distributed under the License is distributed on an "AS IS" BASIS,
mbedAustin 3:6bf0bf2bbb31 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mbedAustin 3:6bf0bf2bbb31 13 * See the License for the specific language governing permissions and
mbedAustin 3:6bf0bf2bbb31 14 * limitations under the License.
mbedAustin 3:6bf0bf2bbb31 15 */
mbed_official 0:cc465aef98cf 16 #include "mbed.h"
mbed_official 0:cc465aef98cf 17
mbed_official 0:cc465aef98cf 18 LocalFileSystem local("local"); // Create the local filesystem under the name "local"
mbed_official 0:cc465aef98cf 19
mbed_official 0:cc465aef98cf 20 int main() {
mbed_official 0:cc465aef98cf 21 FILE *fp = fopen("/local/out.txt", "w"); // Open "out.txt" on the local file system for writing
mbed_official 0:cc465aef98cf 22 fprintf(fp, "Hello World!");
mbed_official 0:cc465aef98cf 23 fclose(fp);
mbed_official 0:cc465aef98cf 24 }