JunOllyLi / espidf5_edgetx

EdgeTX build with ESP-IDF v5
Apache License 2.0
23 stars 8 forks source link

How to compile for my target? #6

Open PravarHegde opened 4 weeks ago

PravarHegde commented 4 weeks ago

I want to build a similar project to yours with a few changes. How can I compile it for my target? Where do I change the pinout?

JunOllyLi commented 3 weeks ago

The compile steps is in the README.md, let me know if you have any question about that. The pinout were assigned in the edgetx/radio/src/target/muffin/board.sh The part says "From Kconfig" need to be modified in the "idf.py menuconfig" of ESP32 build environment.

/* From Kconfig LCD D0 - D7: 14, 13, 12, 11, 10, 9, 46, 3 LCD CS 45 LCD DC 48 LCD WR 21

define I2C_SCL 40

define I2C_SDA 39

// MOSI -1 // MISO -1 // RESET -1 // SCLK -1 // TOUCH CS -1 // TOUCH IRQ -1 */

define POT1_ADC_CHANNEL ADC_CHANNEL_5 // GPIO 6

define POT2_ADC_CHANNEL ADC_CHANNEL_4 // GPIO 5

define BATT_ADC_CHANNEL ADC_CHANNEL_6 // GPIO 7

define BACKLITE_PIN 4

define RMT_TX_PIN 41

define TRAINER_IN_GPIO 42

define FLYSKY_UART_RX_PIN 44

define INTMOD_UART_PORT UART_NUM_2

define INTMOD_RX_PIN 2

define INTMOD_TX_PIN 1

define I2C_MASTER_NUM (i2c_port_t)0

define SD_DEDICATED_SPI

ifdef SD_DEDICATED_SPI

define SD_SPI_HOST SPI2_HOST

define SDSPI_CLK 47

define SDSPI_MOSI 0

define SDSPI_MISO 15

endif

define SDCARD_CS_GPIO 38

define I2S_DOUT 18

define I2S_BCLK 17

define I2S_LRCLK 16

PravarHegde commented 3 weeks ago

Which one is the best?

  1. Visual Studio Code (ESP-IDF)
  2. Gitpod (VS Code)
  3. Docker
  4. ESP-IDF
JunOllyLi commented 3 weeks ago

Which one is the best?

  1. Visual Studio Code (ESP-IDF)
  2. Gitpod (VS Code)
  3. Docker
  4. ESP-IDF

My choice was using Visual Studio Code to edit but build in the ESP-IDF command line environment 😄

PravarHegde commented 3 weeks ago

I tried to install the ESP-IDF on Visual Studio Code but I am unable to compile it. I will try your method