A test program - Pin names library for StarBoard Orange.

Dependencies:   mbed StarBoardOrangePinNames SDFileSystem

main.cpp

Committer:
shintamainjp
Date:
2010-10-14
Revision:
0:729b1b3adb7a

File content as of revision 0:729b1b3adb7a:

/**
 * 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) {
    }
}