diff --git a/.github/hardware.py b/.github/hardware.py index 2f6f32c..02b6fb1 100644 --- a/.github/hardware.py +++ b/.github/hardware.py @@ -331,7 +331,7 @@ def validate_power_config(target, layout, firmware): print(f'ERROR: device "{target}" power_values2 is defined so the power_apc2 pin must also be defined') had_error = True elif 'power_values_dual' in layout: - power_values_dual = layout['power_values'] + power_values_dual = layout['power_values_dual'] if power_values_dual and power_max - power_min + 1 > len(power_values_dual): print(f'ERROR: device "{target}" power_values_dual must have the correct number of entries to match all values from power_min to power_max') had_error = True diff --git a/TX/DAKEFPV MAX.json b/TX/DAKEFPV MAX.json new file mode 100644 index 0000000..d8a574f --- /dev/null +++ b/TX/DAKEFPV MAX.json @@ -0,0 +1,36 @@ +{ + "serial_rx": 13, + "serial_tx": 13, + "radio_busy": 38, + "radio_dio1": 39, + "radio_miso": 19, + "radio_mosi": 23, + "radio_nss": 5, + "radio_rst": 22, + "radio_sck": 18, + "radio_dcdc": true, + "power_min": 0, + "power_high": 7, + "power_max": 7, + "power_default": 5, + "joystick": 35, + "joystick_values": [1977, 3135, 2619, 0, 1322, 4095], + "led_rgb": 21, + "led_rgb_isgrb": true, + "screen_type": 4, + "screen_dc": 14, + "screen_mosi": 12, + "screen_rst": 33, + "screen_sck": 2, + "screen_bl": 32, + "screen_cs": -1, + "screen_reversed": true, + "use_backpack": true, + "debug_backpack_baud": 460800, + "debug_backpack_rx": 16, + "debug_backpack_tx": 17, + "backpack_boot": 15, + "backpack_en": 25, + "passthrough_baud": 230400, + "misc_fan_en": 4 +} diff --git a/logo/dakefpv_tft.bin b/logo/dakefpv_tft.bin new file mode 100644 index 0000000..9c481e7 Binary files /dev/null and b/logo/dakefpv_tft.bin differ diff --git a/targets.json b/targets.json index 7ae4b4e..09994f0 100644 --- a/targets.json +++ b/targets.json @@ -873,6 +873,27 @@ "platform": "esp32-c3", "firmware": "Unified_ESP32C3_LR1121_RX" } + }, + "tx_2400": { + "max-1w": { + "product_name": "DAKEFPV 2.4GHz Micro MAX 1W TX", + "lua_name": "DKFPV 2400TX 1W", + "layout_file": "DAKEFPV MAX.json", + "overlay": { + "power_control": 0, + "power_min": 1, + "power_max": 6, + "power_high": 6, + "power_values": null, + "power_values_dual": [-18, -16, -14, -8, -5, -1], + "power_lna_gain": 15 + }, + "logo_file": "dakefpv_tft.bin", + "upload_methods": ["uart", "wifi"], + "min_version": "3.6.0", + "platform": "esp32", + "firmware": "Unified_ESP32_LR1121_TX" + } } }, "deepspace": {