Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated README. Added wrover_hm config #298

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ See https://github.com/espressif/esp-idf/issues/6063#issuecomment-1010899552
To flash all build output, run 'make flash' or :

```
python /home/yourhome/esp/esp-idf/components/esptool_py/esptool/esptool.py \
--chip esp32 --port com5 --baud 460800 --before default_reset \
esptool \
--chip esp32 --port /dev/ttyUSB0 --baud 921600 --before default_reset \
--after hard_reset write_flash -u --flash_mode dio \
--flash_freq 40m --flash_size detect \
0x1000 /home/yourhome/esp/Ka-Radio32/build/bootloader/bootloader.bin \
0x10000 /home/yourhome/esp/Ka-Radio32/build/KaRadio32.bin \
0x8000 /home/yourhome/esp/Ka-Radio32/build/partitions.bin
0x1000 $HOME/esp/Ka-Radio32/build/bootloader/bootloader.bin \
0x10000 $HOME/esp/Ka-Radio32/build/KaRadio32.bin \
0x8000 $HOME/esp/Ka-Radio32/build/partitions.bin
```
## GPIO Definition
The default configuration is given below. It includes an encoder, an IR remote and a LCD or OLED.
Expand Down
42 changes: 42 additions & 0 deletions boards/WIRING_wrover_hm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Wiring


## LCD

| |ESP32 |ST7735 |
|-----|------|-------|
|MOSI |23 |SDA |
|CLK |18 |SCK |
|CS |5 |CS |
|DC |4 |A0 |
|RST |2 |RESET |
|BACKLIGHT |15 |LED |

## I2S

| |ESP32 |PCM5102 |
|-----|-----|--------|
|LRCK |25 |WSEL |
|BCLK |26 |BCLK |
|DATA |27 |DIN |

## Rotary encoders
### Channels
| |ESP32 |KY-040 |
|---------|------|-------|
|ENC0_A |14 |CLK |
|ENC0_B |13 |DT |
|ENC0_BTN |12 |SW |

### Volume
| |ESP32 |KY-040 |
|---------|------|-------|
|ENC1_A |32 |CLK |
|ENC1_B |33 |DT |
|ENC1_BTN |22 |SW |

## Infrared receiver

| |ESP32 |IR |
|----------|------|----|
|IR_SIGNAL |21 |OUT |
Binary file added boards/build/wrover_hm.bin
Binary file not shown.
68 changes: 68 additions & 0 deletions boards/wrover_hm.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
key,type,encoding,value
label_space,namespace,,
L_LABEL,data,string,wrover_hm.csv
L_COMMENT,data,string,This is the modified configuration for a wrover.
gpio_space,namespace,,
K_SPI,data,u8,2
P_MISO,data,u8,19
P_MOSI,data,u8,23
P_CLK,data,u8,18
P_XCS,data,u8,255
P_RST,data,u8,255
P_XDCS,data,u8,255
P_DREQ,data,u8,255
P_ENC0_A,data,u8,14
P_ENC0_B,data,u8,13
P_ENC0_BTN,data,u8,12
P_ENC1_A,data,u8,32
P_ENC1_B,data,u8,33
P_ENC1_BTN,data,u8,22
P_BTN0_A,data,u8,255
P_BTN0_B,data,u8,255
P_BTN0_C,data,u8,255
P_BTN1_A,data,u8,255
P_BTN1_B,data,u8,255
P_BTN1_C,data,u8,255
P_I2C_SCL,data,u8,255
P_I2C_SDA,data,u8,255
P_I2C_RST,data,u8,255
P_LCD_CS,data,u8,5
P_LCD_A0,data,u8,4
P_LCD_RST,data,u8,2
P_IR_SIGNAL,data,u8,21
P_I2S_LRCK,data,u8,25
P_I2S_BCLK,data,u8,26
P_I2S_DATA,data,u8,27
P_TOUCH_CS,data,u8,255
P_JOY_0,data,u8,255
P_JOY_1,data,u8,255
P_LED_GPIO,data,u8,255
P_ADC_KBD,data,u8,255
P_BACKLIGHT,data,u8,15

option_space,namespace,,
O_LCD_TYPE,data,u8,192
O_LCD_ROTA,data,u8,0
O_LCD_OUT,data,u32,0
O_DDMM_FLAG,data,u8,0

custom_ir_space,namespace,,
K_UP,data,string,0xFF005A
K_LEFT,data,string,0xFF0052
K_OK,data,string,0xFF001C
K_RIGHT,data,string,0xFF0018
K_DOWN,data,string,0xFF0008
K_0,data,string,0xFF0019
K_1,data,string,0xFF0045
K_2,data,string,0xFF0046
K_3,data,string,0xFF0047
K_4,data,string,0xFF0044
K_5,data,string,0xFF0040
K_6,data,string,0xFF0043
K_7,data,string,0xFF0007
K_8,data,string,0xFF0015
K_9,data,string,0xFF0009
K_STAR,data,string,0xFF0016
K_DIESE,data,string,0xFF000D
K_INFO,data,string,