You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-19Lines changed: 25 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,15 @@
1
1
# Sqlite3 Arduino library for ESP32
2
-
This library enables access to SQLite database files from SPIFFS or SD Cards through ESP32 SoC. Given below is a picture of a board that has a ready-made Micro SD slot:
2
+
3
+
This library enables access to SQLite database files from SPIFFS or SD Cards through ESP32 SoC. Given below is a picture of a board that has a ready-made Micro SD slot (using SDMMC 4 bit mode - see example sqlite3_sdmmc):
3
4
4
5

5
6
7
+
Also shown below is the wiring between ESP-WROOM-32 breakout board and Micro SD Shield (using SPI mode - see example sqlite3_sdspi):
8
+
9
+

10
+
6
11
## Usage
12
+
7
13
Sqlite3 C API such as `sqlite3_open` can be directly invoked. Before calling please invoke:
8
14
9
15
```c++
@@ -31,29 +37,29 @@ Please see the examples for full illustration of usage for the different file sy
31
37
While there is no wiring needed for SPIFFS, for attaching cards to SPI bus, please use the following connections:
32
38
33
39
```c++
34
-
* SD Card | ESP32
35
-
* DAT2 -
36
-
* DAT3 SS
37
-
* CMD MOSI
38
-
* VSS GND
39
-
* VDD 3.3V
40
-
* CLK SCK
41
-
* DAT0 MISO
42
-
* DAT1 -
40
+
* SD Card | ESP32
41
+
* DAT2(1) -
42
+
* DAT3 (2) SS (D5)
43
+
* CMD (3) MOSI (D23)
44
+
*VDD (4)3.3V
45
+
*CLK (5)SCK (D19)
46
+
*VSS (6)GND
47
+
* DAT0 (7) MISO (D18)
48
+
* DAT1 (8) -
43
49
```
44
50
45
51
And for SD card attached to High-speed 4-bit SD_MMC port, use:
46
52
47
53
```c++
48
-
* SD Card | ESP32
49
-
* DAT2 12
50
-
* DAT3 13
51
-
* CMD 15
52
-
* VSS GND
53
-
* VDD 3.3V
54
-
* CLK 14
55
-
* DAT0 2 (add 1K pull up after flashing)
56
-
* DAT1 4
54
+
* SD Card | ESP32
55
+
* DAT2 (1) D12
56
+
* DAT3 (2) D13
57
+
* CMD (3) D15
58
+
* VDD (4) 3.3V
59
+
* CLK (5) D14
60
+
* VSS (6) GND
61
+
* DAT0 (7) D2
62
+
* DAT1 (8) D4
57
63
```
58
64
59
65
If you are using a board such as shown in the picture above, this wiring is ready-made.
0 commit comments