mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
update AVR src
* java code not tested * Merge remote-tracking branch 'remotes/arduino/master' into esp8266 Conflicts: README.md app/src/processing/app/AbstractMonitor.java arduino-core/src/processing/app/Serial.java libraries/WiFi/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino libraries/WiFi/library.properties
This commit is contained in:
parent
e856053254
commit
fe1b39fa0e
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,7 +13,7 @@ hardware/arduino/bootloaders/caterina_LUFA/Caterina.lss
|
|||||||
hardware/arduino/bootloaders/caterina_LUFA/Caterina.elf
|
hardware/arduino/bootloaders/caterina_LUFA/Caterina.elf
|
||||||
hardware/arduino/bootloaders/caterina_LUFA/Caterina.eep
|
hardware/arduino/bootloaders/caterina_LUFA/Caterina.eep
|
||||||
hardware/arduino/bootloaders/caterina_LUFA/.dep/
|
hardware/arduino/bootloaders/caterina_LUFA/.dep/
|
||||||
build/libastylej-*.zip
|
build/*.zip
|
||||||
build/windows/work/
|
build/windows/work/
|
||||||
build/windows/*.zip
|
build/windows/*.zip
|
||||||
build/windows/*.tgz
|
build/windows/*.tgz
|
||||||
|
@ -291,7 +291,7 @@ uint32_t EspClass::getFlashChipSizeByChipId(void) {
|
|||||||
String EspClass::getResetInfo(void) {
|
String EspClass::getResetInfo(void) {
|
||||||
if(resetInfo.reason != 0) {
|
if(resetInfo.reason != 0) {
|
||||||
char buff[200];
|
char buff[200];
|
||||||
sprintf(&buff[0], "Fatal exception:%d flag:%d (%s) epc1:0x%08x epc2:0x%08x epc3:0x%08x excvaddr:0x%08x depc:0x%08x", resetInfo.exccause, resetInfo.reason, (resetInfo.reason == 0 ? "DEFAULT" : resetInfo.reason == 1 ? "WDT" : resetInfo.reason == 2 ? "EXCEPTION" : resetInfo.reason == 3 ? "SOFT_WDT" : resetInfo.reason == 4 ? "SOFT_RESTART" : resetInfo.reason == 5 ? "DEEP_SLEEP_AWAKE" : "???"), resetInfo.epc1, resetInfo.epc2, resetInfo.epc3, resetInfo.excvaddr, resetInfo.depc);
|
sprintf(&buff[0], "Fatal exception:%d flag:%d (%s) epc1:0x%08x epc2:0x%08x epc3:0x%08x excvaddr:0x%08x depc:0x%08x", resetInfo.exccause, resetInfo.reason, (resetInfo.reason == 0 ? "DEFAULT" : resetInfo.reason == 1 ? "WDT" : resetInfo.reason == 2 ? "EXCEPTION" : resetInfo.reason == 3 ? "SOFT_WDT" : resetInfo.reason == 4 ? "SOFT_RESTART" : resetInfo.reason == 5 ? "DEEP_SLEEP_AWAKE" : "???"), resetInfo.epc1, resetInfo.epc2, resetInfo.epc3, resetInfo.excvaddr, resetInfo.depc);
|
||||||
return String(buff);
|
return String(buff);
|
||||||
}
|
}
|
||||||
return String("flag: 0");
|
return String("flag: 0");
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
#undef max
|
#undef max
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
//#define DEBUG_WIFI_MULTI(...) Serial1.printf( __VA_ARGS__ )
|
#define DEBUG_WIFI_MULTI(...) Serial1.printf( __VA_ARGS__ )
|
||||||
|
|
||||||
#ifndef DEBUG_WIFI_MULTI
|
#ifndef DEBUG_WIFI_MULTI
|
||||||
#define DEBUG_WIFI_MULTI(...)
|
#define DEBUG_WIFI_MULTI(...)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
The SD library allows for reading from and writing to SD cards.
|
The SD library allows for reading from and writing to SD cards.
|
||||||
|
|
||||||
For more information about this library please visit us at
|
For more information about this library please visit us at
|
||||||
http://arduino.cc/en/Reference/SD
|
http://www.arduino.cc/en/Reference/SD
|
||||||
|
|
||||||
== License ==
|
== License ==
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
name=SD
|
name=SD
|
||||||
version=1.0.4
|
version=1.0.5
|
||||||
author=Arduino, SparkFun
|
author=Arduino, SparkFun
|
||||||
maintainer=Arduino <info@arduino.cc>
|
maintainer=Arduino <info@arduino.cc>
|
||||||
sentence=Enables reading and writing on SD cards. For all Arduino boards.
|
sentence=Enables reading and writing on SD cards. For all Arduino boards.
|
||||||
paragraph=Once an SD memory card is connected to the SPI interfare of the Arduino board you are enabled to create files and read/write on them. You can also move through directories on the SD card.
|
paragraph=Once an SD memory card is connected to the SPI interfare of the Arduino board you are enabled to create files and read/write on them. You can also move through directories on the SD card.
|
||||||
category=Data Storage
|
category=Data Storage
|
||||||
url=http://arduino.cc/en/Reference/SD
|
url=http://www.arduino.cc/en/Reference/SD
|
||||||
architectures=*
|
architectures=*
|
||||||
|
@ -93,18 +93,23 @@ public:
|
|||||||
// write, etc). Returns a File object for interacting with the file.
|
// write, etc). Returns a File object for interacting with the file.
|
||||||
// Note that currently only one file can be open at a time.
|
// Note that currently only one file can be open at a time.
|
||||||
File open(const char *filename, uint8_t mode = FILE_READ);
|
File open(const char *filename, uint8_t mode = FILE_READ);
|
||||||
|
File open(const String &filename, uint8_t mode = FILE_READ) { return open( filename.c_str(), mode ); }
|
||||||
|
|
||||||
// Methods to determine if the requested file path exists.
|
// Methods to determine if the requested file path exists.
|
||||||
boolean exists(char *filepath);
|
boolean exists(char *filepath);
|
||||||
|
boolean exists(const String &filepath) { return exists(filepath.c_str()); }
|
||||||
|
|
||||||
// Create the requested directory heirarchy--if intermediate directories
|
// Create the requested directory heirarchy--if intermediate directories
|
||||||
// do not exist they will be created.
|
// do not exist they will be created.
|
||||||
boolean mkdir(char *filepath);
|
boolean mkdir(char *filepath);
|
||||||
|
boolean mkdir(const String &filepath) { return mkdir(filepath.c_str()); }
|
||||||
|
|
||||||
// Delete the file.
|
// Delete the file.
|
||||||
boolean remove(char *filepath);
|
boolean remove(char *filepath);
|
||||||
|
boolean remove(const String &filepath) { return remove(filepath.c_str()); }
|
||||||
|
|
||||||
boolean rmdir(char *filepath);
|
boolean rmdir(char *filepath);
|
||||||
|
boolean rmdir(const String &filepath) { return rmdir(filepath.c_str()); }
|
||||||
|
|
||||||
uint8_t type(){ return card.type(); }
|
uint8_t type(){ return card.type(); }
|
||||||
uint8_t fatType(){ return volume.fatType(); }
|
uint8_t fatType(){ return volume.fatType(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user