A test program - Pin names library for StarBoard Orange.

Dependencies:   mbed StarBoardOrangePinNames SDFileSystem

Files at this revision

API Documentation at this revision

Comitter:
shintamainjp
Date:
Thu Oct 14 14:00:00 2010 +0000
Commit message:

Changed in this revision

extlib/FATFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
extlib/SDFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
extlib/TextLCD.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
mylib/StarBoardOrangePinNames.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/extlib/FATFileSystem.lib	Thu Oct 14 14:00:00 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_unsupported/code/fatfilesystem/
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/extlib/SDFileSystem.lib	Thu Oct 14 14:00:00 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/SDFileSystem/#b1ddfc9a9b25
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/extlib/TextLCD.lib	Thu Oct 14 14:00:00 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/TextLCD/#a53b3e2d6f1e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Oct 14 14:00:00 2010 +0000
@@ -0,0 +1,30 @@
+/**
+ * A test program - Pin names library for StarBoard Orange (Version 0.0.1)
+ *
+ * See also ... http://mbed.org/users/logic_star/notebook/star_board_orange/
+ *
+ * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems)
+ * http://shinta.main.jp/
+ */
+
+#include "mbed.h"
+#include "TextLCD.h"
+#include "SDFileSystem.h"
+#include "StarBoardOrangePinNames.h"
+
+TextLCD lcd(LCD_RS, LCD_EN, LCD_DB4, LCD_DB5, LCD_DB6, LCD_DB7);
+SDFileSystem fs_sd(SD_DI, SD_DO, SD_CK, SD_CS, "sd");
+
+int main() {
+    lcd.cls();
+    lcd.printf("This is a test.");
+    
+    FILE *fp = fopen("/sd/test.txt", "w");
+    if (fp != NULL) {
+        fprintf(fp, "This is a test.");
+        fclose(fp);
+    }
+    
+    while(1) {
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Oct 14 14:00:00 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mylib/StarBoardOrangePinNames.lib	Thu Oct 14 14:00:00 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/shintamainjp/code/StarBoardOrangePinNames/#a88ef72e11cc