Skip to content

Commit

Permalink
Foxeer RX target (#1796)
Browse files Browse the repository at this point in the history
* Add RX with PA and RGB

* Add PIO target for configurator

* Add Foxeer PA-RGB target
  • Loading branch information
pkendall64 committed Aug 26, 2022
1 parent a90a9f4 commit 5d03674
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/hardware/RX/Generic 2400 PA RGB.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"serial_rx": 3,
"serial_tx": 1,
"radio_busy": 5,
"radio_dio1": 4,
"radio_miso": 12,
"radio_mosi": 13,
"radio_nss": 15,
"radio_rst": 16,
"radio_sck": 14,
"radio_dcdc": true,
"power_rxen": 9,
"power_txen": 10,
"power_min": 0,
"power_high": 3,
"power_max": 3,
"power_default": 3,
"power_control": 0,
"power_values": [-10,-6,-3,1],
"button": 0,
"led_rgb": 2,
"led_rgb_isgrb": 1
}
24 changes: 24 additions & 0 deletions src/hardware/targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,22 @@
}
}
},
"foxeer": {
"name": "Foxeer",
"rx_2400": {
"pa-rgb": {
"product_name": "Foxeer 2.4Ghz RX",
"lua_name": "Foxeer 2400 RX",
"layout_file": "Generic 2400 PA RGB.json",
"overlay": {
"radio_dcdc": true
},
"upload_methods": ["uart", "wifi", "betaflight"],
"platform": "esp8285",
"firmware": "Unified_ESP8285_2400_RX"
}
}
},
"frsky": {
"name": "Frsky",
"tx_900": {
Expand Down Expand Up @@ -440,6 +456,14 @@
"platform": "esp8285",
"firmware": "Unified_ESP8285_2400_RX"
},
"pa-rgb": {
"product_name": "Generic ESP8285 RGB + PA 2.4Ghz RX",
"lua_name": "ELRS+RGB 2400RX",
"layout_file": "Generic 2400 PA RGB.json",
"upload_methods": ["uart", "wifi", "betaflight"],
"platform": "esp8285",
"firmware": "Unified_ESP8285_2400_RX"
},
"diversity": {
"product_name": "Generic ESP8285 + Diversity PA 2.4Ghz RX",
"lua_name": "ELRS+D 2400RX",
Expand Down
13 changes: 13 additions & 0 deletions src/targets/diy_2400.ini
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,19 @@ upload_command = ${env_common_esp82xx.bf_upload_command}
[env:DIY_2400_RX_ESP8285_SX1280_via_WIFI]
extends = env:DIY_2400_RX_ESP8285_SX1280_via_UART

[env:DIY_2400_PA_RGB_RX_via_UART]
extends = env:Unified_ESP8285_2400_RX_via_UART
board_config = generic.rx_2400.pa-rgb

[env:DIY_2400_PA_RGB_RX_via_BetaflightPassthrough]
extends = env:DIY_2400_PA_RGB_RX_via_UART
upload_protocol = custom
upload_speed = 420000
upload_command = ${env_common_esp82xx.bf_upload_command}

[env:DIY_2400_PA_RGB_RX_via_WIFI]
extends = env:DIY_2400_PA_RGB_RX_via_UART

[env:DIY_2400_RX_PWMP_via_UART]
extends = env:Unified_ESP8285_2400_RX_via_UART
board_config = generic.rx_2400.pwm5
Expand Down
21 changes: 21 additions & 0 deletions src/targets/foxeer_2400.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

# ********************************
# Transmitter targets
# ********************************

# ********************************
# Receiver targets
# ********************************

[env:Foxeer_2400_RX_via_UART]
extends = env:Unified_ESP8285_2400_RX_via_UART
board_config = Foxeer.rx_2400.pa-rgb

[env:Foxeer_2400_RX_via_BetaflightPassthrough]
extends = env:Foxeer_2400_RX_via_UART
upload_protocol = custom
upload_speed = 420000
upload_command = ${env_common_esp82xx.bf_upload_command}

[env:Foxeer_2400_RX_via_WIFI]
extends = env:Foxeer_2400_RX_via_UART

0 comments on commit 5d03674

Please sign in to comment.