Arduino library for Sequent Microsystems ESP32-Pi: a really low cost Replacement Solution for Raspberry Pi
Go to Tools>>Manage Libraries.. menu and search for SM_ESP32Pi and click install
To download click <>Code > Download ZIP button, rename the uncompressed folder to "SM_ESP32Pi" and copy to the libraries subdirectory of your sketchbook directory ("This PC > Documents > Arduino > libraries" for a Windows PC or "Home > arduino > libraries" on a Linux PC). Now launch the Arduino environment. If you open the Sketch > Include Library menu, you should see SM_ESP32Pi inside. The library will be compiled with sketches that use it. Open an Arduino sketch, go to File > Examples > Sequent LCD Adaptor HAT >, and choose your example to run.
Now you can try one of his examples, open a sketchbook and go to File>Example>SM_ESP32Pi and select one of the examples. The GPIO, SDCard, and Ethernet port, both synchronous and asynchronous, can be tested. To run the examples, you will need to select the board "DOIT ESP32 DEVKIT V1". All Sequent Microsystems Raspberry Pi HATS are working with this card by plugging directly.
Header pin# | ESP_GPIO# | RPI_GPIO# | Main function | Alternate function |
---|---|---|---|---|
1 | 3.3V | 3.3V | PWR | |
2 | 5V | 5V | PWR | |
3 | 21 | 2 | I2C only | I2C_SDA |
4 | 5V | 5V | PWR | |
5 | 22 | 3 | I2C only | I2C_SCL |
6 | GND | GND | PWR | |
7 | 36 | 4 | I | |
8 | 17 | 14 | I/O | HardwareSerial(1) |
9 | GND | GND | PWR | |
10 | 16 | 15 | I/O | HardwareSerial(1) |
11 | 39 | 17 | I | |
12 | N/C | 18 | N/A | |
13 | N/C | 27 | N/A | |
14 | GND | GND | PWR | |
15 | 26 | 22 | I/O | |
16 | 35 | 23 | I | |
17 | 3.3V | 3.3V | PWR | |
18 | 32 | 24 | I/O | |
19 | 23 | 10 | I/O | SPI_MOSI |
20 | GND | GND | PWR | |
21 | 19 | 9 | I/O | SPI_MISO |
22 | N/C | 25 | NA | |
23 | 18 | 11 | I/O | SPI_CLK |
24 | 5 | 8 | I/O | SPI_CS |
25 | GND | GND | PWR | |
26 | 34 | 7 | I | |
27 | 1 | 0 | I/O | TX2 (TX0 (dip switch)) |
28 | 3 | 1 | I/O | RX2 (RX0 (dip switch)) |
29 | 14 | 5 | I/O | |
30 | GND | GND | PWR | |
31 | 12 | 6 | I/O | |
32 | 25 | 12 | I/O | TX1 (SoftwareSerial) |
33 | 33 | 13 | I/O | RX1 (SoftwareSerial) |
34 | GND | GND | PWR | |
35 | N/C | 19 | N/A | |
36 | 13 | 16 | I/O | |
37 | 27 | 26 | I/O | |
38 | 15 | 20 | I/O | |
39 | GND | GND | PWR | |
40 | N/C | 21 | N/A |