mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-15 14:25:56 +08:00

* Update WebSocket library * Update SSDP library * Update TFT_eSPI library * Update EspLuaEngine library * Update SDFat library * Change to pioarduino * Make ESP3DMessageFIFO and ESP3DMessage more thread safe * Fix sanity checks for BT * Add some C6 support * Refactor ethernet code * Split Ethernet Sta / WiFi sta ESP Commands and settings * Simplify wait and wdtFeed code * Set C3 with 4MB by default in platformio.ini * Apply Disable brown out only on ESP32 to avoid crash e.g:ESP32S3 * Add missing entries in platformio.ini
29 lines
690 B
C++
29 lines
690 B
C++
// This example illustrates use of SdFat's
|
|
// minimal unbuffered AVR Serial support.
|
|
//
|
|
// This is useful for debug and saves RAM
|
|
// Will not work on Due, Leonardo, or Teensy
|
|
|
|
#include <SPI.h>
|
|
#include "SdFat.h"
|
|
#include "FreeStack.h"
|
|
#ifdef UDR0 // Must be AVR with serial port zero.
|
|
#include "MinimumSerial.h"
|
|
|
|
MinimumSerial MiniSerial;
|
|
|
|
void setup() {
|
|
MiniSerial.begin(9600);
|
|
MiniSerial.println(FreeStack());
|
|
}
|
|
void loop() {
|
|
int c;
|
|
MiniSerial.println(F("Type any Character"));
|
|
while ((c = MiniSerial.read()) < 0) {}
|
|
MiniSerial.print(F("Read: "));
|
|
MiniSerial.println((char)c);
|
|
while (MiniSerial.read() >= 0) {}
|
|
}
|
|
#else // UDR0
|
|
#error no AVR serial port 0
|
|
#endif // UDR0
|