Implement native ESP-IDF radar firmware
This commit is contained in:
39
main/radick_config.h
Normal file
39
main/radick_config.h
Normal file
@@ -0,0 +1,39 @@
|
||||
#pragma once
|
||||
|
||||
#include "driver/gpio.h"
|
||||
|
||||
// This firmware intentionally targets the Basic CrowPanel V3.0. V1/V2 route
|
||||
// the touch interrupt through GPIO38 and are not pin-compatible with Radick.
|
||||
#define RADICK_LCD_H_RES 800
|
||||
#define RADICK_LCD_V_RES 480
|
||||
|
||||
#define RADICK_LCD_DE_GPIO GPIO_NUM_41
|
||||
#define RADICK_LCD_VSYNC_GPIO GPIO_NUM_40
|
||||
#define RADICK_LCD_HSYNC_GPIO GPIO_NUM_39
|
||||
#define RADICK_LCD_PCLK_GPIO GPIO_NUM_0
|
||||
#define RADICK_LCD_BACKLIGHT_GPIO GPIO_NUM_2
|
||||
|
||||
#define RADICK_TOUCH_SDA_GPIO GPIO_NUM_19
|
||||
#define RADICK_TOUCH_SCL_GPIO GPIO_NUM_20
|
||||
#define RADICK_PCA9557_ADDRESS 0x18
|
||||
#define RADICK_GT911_ADDRESS 0x5D
|
||||
#define RADICK_GT911_ALT_ADDRESS 0x14
|
||||
|
||||
// Safer split-connector wiring for V3:
|
||||
// RD-03D TX -> GPIO_D pin 1 (GPIO38)
|
||||
// RD-03D RX <- UART pin 2 (GPIO43)
|
||||
// This avoids connecting the radar TX output to GPIO44, where the onboard
|
||||
// CH340C TX output is already electrically connected.
|
||||
#define RADICK_RADAR_RX_GPIO GPIO_NUM_38
|
||||
#define RADICK_RADAR_TX_GPIO GPIO_NUM_43
|
||||
#define RADICK_RADAR_UART_NUM UART_NUM_1
|
||||
#define RADICK_RADAR_BAUD_RATE 256000
|
||||
|
||||
#define RADICK_AUDIO_DOUT_GPIO GPIO_NUM_17
|
||||
#define RADICK_AUDIO_LRCLK_GPIO GPIO_NUM_18
|
||||
#define RADICK_AUDIO_BCLK_GPIO GPIO_NUM_42
|
||||
|
||||
#define RADICK_UI_REFRESH_MS 50U
|
||||
#define RADICK_SENSOR_OFFLINE_MS 1500U
|
||||
#define RADICK_TARGET_EXPIRE_MS 650U
|
||||
#define RADICK_AUTO_DIM_MS 60000U
|
||||
Reference in New Issue
Block a user