A test program - Pin names library for StarBoard Orange.
Dependencies: mbed StarBoardOrangePinNames SDFileSystem
Diff: main.cpp
- Revision:
- 0:729b1b3adb7a
--- /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) { + } +}