source: rtos_arduino/trunk/arduino_lib/libraries/Robot_Control/src/RobotSdCard.cpp@ 136

Last change on this file since 136 was 136, checked in by ertl-honda, 8 years ago

ライブラリとOS及びベーシックなサンプルの追加.

File size: 454 bytes
Line 
1#include <ArduinoRobot.h>
2
3void RobotControl::beginSD(){
4 card.init();
5 file.init(&card);
6 melody.init(&card);
7}
8
9void RobotControl::_enableSD(){
10 DDRB = DDRB & 0xDF; //pinMode(CS_LCD,INPUT);
11 DDRB = DDRB | 0x10; //pinMode(CS_SD,OUTPUT);
12}
13
14/*
15void RobotControl::sdTest(){
16 file.open("Infor.txt",O_READ);
17 uint8_t buf[7];
18 char n;
19 while ((n = file.read(buf, sizeof(buf))) > 0) {
20 for (uint8_t i = 0; i < n; i++) Serial.write(buf[i]);
21 }
22}*/
Note: See TracBrowser for help on using the repository browser.