Last change
on this file since 376 was 136, checked in by ertl-honda, 9 years ago |
ライブラリとOS及びベーシックなサンプルの追加.
|
File size:
454 bytes
|
Line | |
---|
1 | #include <ArduinoRobot.h>
|
---|
2 |
|
---|
3 | void RobotControl::beginSD(){
|
---|
4 | card.init();
|
---|
5 | file.init(&card);
|
---|
6 | melody.init(&card);
|
---|
7 | }
|
---|
8 |
|
---|
9 | void RobotControl::_enableSD(){
|
---|
10 | DDRB = DDRB & 0xDF; //pinMode(CS_LCD,INPUT);
|
---|
11 | DDRB = DDRB | 0x10; //pinMode(CS_SD,OUTPUT);
|
---|
12 | }
|
---|
13 |
|
---|
14 | /*
|
---|
15 | void 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.