Skip to content

Instantly share code, notes, and snippets.

#include <PCM.h>
const unsigned char sample[] PROGMEM = {
0, 6, 14, 22, 30, 38, 46, 54, 60, 68, 74, 82, 90, 98, 106, 114, 122, 126, 127, 128, 128, 128, 128, 128, 127, 128, 128, 128, 129, 129, 128, 127, 128, 128, 127, 126, 127, 128, 129, 128, 127, 126, 127, 128, 128, 126, 126, 127, 127, 127, 127, 127, 127, 126, 127, 129, 130, 129, 128, 126, 126, 126, 126, 127, 129, 130, 129, 127, 127, 127, 127, 128, 128, 128, 128, 127, 127, 127, 127, 127, 127, 128, 130, 131, 129, 127, 126, 126, 126, 127, 127, 128, 128, 128, 128, 127, 128, 128, 127, 127, 128, 128, 130, 130, 129, 126, 125, 127, 129, 130, 129, 128, 126, 125, 126, 129, 131, 131, 127, 123, 125, 129, 131, 130, 128, 129, 130, 130, 129, 127, 127, 128, 130, 129, 128, 126, 125, 126, 129, 131, 130, 128, 128, 128, 126, 125, 126, 128, 129, 128, 125, 125, 127, 129, 129, 129, 129, 127, 124, 123, 125, 128, 128, 126, 125, 125, 127, 129, 127, 126, 127, 128, 129, 129, 127, 124, 121, 123, 127, 130, 130, 128, 124, 122, 123, 127, 130, 131, 129, 125, 122, 122, 126, 128, 128, 128,
-- <SPI> 1.0
Building in release mode
Compiling .pio/build/d1/src/main.cpp.o
Generating LD script .pio/build/d1/ld/local.eagle.app.v6.common.ld
Compiling .pio/build/d1/lib557/SPI/SPI.cpp.o
Compiling .pio/build/d1/lib7ad/ESP8266SdFat/ExFatLib/ExFatDbg.cpp.o
Compiling .pio/build/d1/lib7ad/ESP8266SdFat/ExFatLib/ExFatFile.cpp.o
src/main.cpp: In function 'void setup()':
src/main.cpp:43:3: error: 'printDirectory' was not declared in this scope
43 | printDirectory(root, 0);
/*
SD card test
This example shows how use the utility libraries on which the'
SD library is based in order to get info about your SD card.
Very useful for testing a card when you're not sure whether its working or not.
The circuit:
SD card attached to SPI bus as follows:
** MOSI - pin 11 on Arduino Uno/Duemilanove/Diecimila
#include <Wire.h>
#include <TimeLib.h>
#include <DS1307RTC.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 32 // OLED display height, in pixels
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 3460, room 16
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4
tail 4
chksum 0xc9
csum 0xc9
v00043170
[bluetooth]# pair 00:00:AB:CF:38:09
Attempting to pair with 00:00:AB:CF:38:09
[CHG] Device 00:00:AB:CF:38:09 Connected: yes
[CHG] Device 00:00:AB:CF:38:09 UUIDs: 00000000-0000-0000-0099-aabbccddeeff
[CHG] Device 00:00:AB:CF:38:09 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device 00:00:AB:CF:38:09 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 00:00:AB:CF:38:09 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 00:00:AB:CF:38:09 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 00:00:AB:CF:38:09 ServicesResolved: yes
[CHG] Device 00:00:AB:CF:38:09 Paired: yes