examples : add pinout info for the MCU examples

This commit is contained in:
Georgi Gerganov
2022-07-23 11:25:15 +03:00
parent 8f36a4dadf
commit 05b601dbd6
4 changed files with 70 additions and 5 deletions

View File

@@ -9,6 +9,24 @@ The development board has a built-in microphone which makes this device very sui
- OLED SSD1306
- Generic speaker
## Pinout for Arduino Nano RP2040 Connect
### I2C Display (optional)
| MCU | Display |
| ------------- | --------- |
| GND | GND |
| 3.3V | VCC / VDD |
| D18 / GPIO 12 | SDA |
| D19 / GPIO 13 | SCL |
### Peripherals (optional)
| MCU | Periph. |
| ------------- | ------- |
| D5 / GPIO 17 | Button |
| D10 / GPIO 5 | Speaker |
![Sketch-Breadboard](fritzing-sketch_bb.png)
![Sketch-Photo](https://user-images.githubusercontent.com/1991296/177850326-e5fefde3-93ee-4cf9-8fa5-861eef9565f7.JPEG)

View File

@@ -26,6 +26,24 @@
//
// Sketch: https://github.com/ggerganov/ggwave/tree/master/examples/arduino-rx
//
// ## Pinout for Arduino Nano RP2040 Connect
//
// ### I2C Display (optional)
//
// | MCU | Display |
// | ------------- | --------- |
// | GND | GND |
// | 3.3V | VCC / VDD |
// | D18 / GPIO 12 | SDA |
// | D19 / GPIO 13 | SCL |
//
// ### Peripherals (optional)
//
// | MCU | Periph. |
// | ------------- | ------- |
// | D5 / GPIO 17 | Button |
// | D10 / GPIO 5 | Speaker |
//
// Uncoment this line to enable SSD1306 display output
//#define DISPLAY_OUTPUT 1

View File

@@ -22,15 +22,15 @@ The received messages are optionally displayed on the attached OLED display.
### Analog Microphone
| EPS32 | Mic |
| MCU | Mic |
| ------- | --------- |
| GND | GND |
| 3.3V | VCC / VDD |
| GPIO 35 | Out |
### Digital Microphone
### Digital (I2S) Microphone
| EPS32 | Mic |
| MCU | Mic |
| ------- | ----------- |
| GND | GND |
| 3.3V | VCC / VDD |
@@ -38,9 +38,9 @@ The received messages are optionally displayed on the attached OLED display.
| GPIO 33 | Data / DOUT |
| GPIO 25 | LRCL |
### I2C Display
### I2C Display (optional)
| EPS32 | Display |
| MCU | Display |
| ------- | ----------- |
| GND | GND |
| 3.3V | VCC / VDD |

View File

@@ -35,6 +35,35 @@
//
// Sketch: https://github.com/ggerganov/ggwave/tree/master/examples/esp32-rx
//
// ## Pinout
//
// ### Analog Microphone
//
// | MCU | Mic |
// | ------- | --------- |
// | GND | GND |
// | 3.3V | VCC / VDD |
// | GPIO 35 | Out |
//
// ### Digital (I2S) Microphone
//
// | MCU | Mic |
// | ------- | ----------- |
// | GND | GND |
// | 3.3V | VCC / VDD |
// | GPIO 26 | BCLK |
// | GPIO 33 | Data / DOUT |
// | GPIO 25 | LRCL |
//
// ### I2C Display (optional)
//
// | MCU | Display |
// | ------- | --------- |
// | GND | GND |
// | 3.3V | VCC / VDD |
// | GPIO 21 | SDA |
// | GPIO 22 | SCL |
//
// Uncomment the line coresponding to your microhpone
#define MIC_ANALOG