WIP: feature/esp32-ng-basic #1

Draft
localhorst wants to merge 27 commits from feature/esp32-ng-basic into master
4 changed files with 560 additions and 474 deletions
Showing only changes of commit e25971af89 - Show all commits
+1
View File
@@ -291,3 +291,4 @@ dkms.conf
.vscode/settings.json
sdkconfig.defaults
.clangd
+14 -6
View File
@@ -22,12 +22,20 @@ static const char *TAG = "CONFIG";
#define HARDCODED_CONFIG
#ifdef HARDCODED_CONFIG
#define HARDCODED_CONFIG_LED_STRIP_A_PIN 12U
#define HARDCODED_CONFIG_LED_STRIP_B_PIN 14U
#define HARDCODED_CONFIG_LED_STRIP_A_COUNT 7U
#define HARDCODED_CONFIG_LED_STRIP_B_COUNT 7U
#define HARDCODED_CONFIG_PWM_PIN 13U
#define HARDCODED_CONFIG_LOCALBTN_PIN GPIO_NUM_0
#define HARDCODED_CONFIG_LED_STRIP_A_PIN 3U
#define HARDCODED_CONFIG_LED_STRIP_B_PIN 2U
#define HARDCODED_CONFIG_LED_STRIP_A_COUNT 10U
#define HARDCODED_CONFIG_LED_STRIP_B_COUNT 10U
#define HARDCODED_CONFIG_PWM_PIN 1U
#if defined(CONFIG_IDF_TARGET_ESP32C3)
#define HARDCODED_CONFIG_LOCALBTN_PIN 9
#elif defined(CONFIG_IDF_TARGET_ESP32)
#define HARDCODED_CONFIG_LOCALBTN_PIN 0
#else
#error "Unsupported target: BOOT button GPIO not defined"
#endif
#endif
// Global state
+1 -1
View File
@@ -194,7 +194,7 @@ static esp_err_t init_strip(led_strip_t *strip, int8_t pin, uint16_t num_leds)
rmt_tx_channel_config_t tx_chan_config = {
.clk_src = RMT_CLK_SRC_DEFAULT,
.gpio_num = pin,
.mem_block_symbols = 64,
.mem_block_symbols = 48,
.resolution_hz = 80000000, // 80MHz
.trans_queue_depth = 4,
};
+544 -467
View File
File diff suppressed because it is too large Load Diff