You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
469B

  1. // This example illustrates use of SdFat's
  2. // minimal unbuffered AVR Serial support.
  3. //
  4. // This is useful for debug and saves RAM
  5. // Will not work on Due, Leonardo, or Teensy
  6. #include <SdFat.h>
  7. #include <SdFatUtil.h>
  8. #ifndef UDR0
  9. #error no AVR serial port0
  10. #endif
  11. void setup() {
  12. MiniSerial.begin(9600);
  13. MiniSerial.println(FreeRam());
  14. MiniSerial.println(F("Type any Character"));
  15. while(MiniSerial.read() < 0) {}
  16. MiniSerial.println(F("Done"));
  17. }
  18. void loop() {}