1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-20 21:01:25 +03:00

Robot Control library to format 1.5 rev.2

This commit is contained in:
Cristian Maglie
2014-01-01 23:45:39 +01:00
parent a80b2b1d53
commit 03a7cf3212
48 changed files with 2 additions and 4 deletions

View File

@ -0,0 +1,22 @@
#include <ArduinoRobot.h>
void RobotControl::beginSD(){
card.init();
file.init(&card);
melody.init(&card);
}
void RobotControl::_enableSD(){
DDRB = DDRB & 0xDF; //pinMode(CS_LCD,INPUT);
DDRB = DDRB | 0x10; //pinMode(CS_SD,OUTPUT);
}
/*
void RobotControl::sdTest(){
file.open("Infor.txt",O_READ);
uint8_t buf[7];
char n;
while ((n = file.read(buf, sizeof(buf))) > 0) {
for (uint8_t i = 0; i < n; i++) Serial.write(buf[i]);
}
}*/