Skip to content

Commit

Permalink
Merge pull request #3 from ExpressLRS/s3-targets
Browse files Browse the repository at this point in the history
Adding support for S3 DIY targets
  • Loading branch information
pkendall64 authored Sep 24, 2023
2 parents aa4cf01 + 178f2e8 commit 9a94716
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/targets_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ def validate_devices(vendor, type, devname, device):
platform = device['platform']
if platform == 'stm32':
validate_stm32(vendor, type, devname, device)
elif platform == 'esp32':
validate_esp32(vendor, type, devname, device)
elif platform == 'esp8285':
validate_esp8285(vendor, type, devname, device)
elif platform.startswith('esp32'):
validate_esp32(vendor, type, devname, device)
else:
error(f'invalid platform "{platform}" in device "{vendor}.{type}.{devname}"')

Expand Down
38 changes: 38 additions & 0 deletions RX/DIY S3 DEVKIT 2400 True Diversity PWM 16.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"serial_rx":44,
"serial_tx":43,

"radio_miso":15,
"radio_mosi":16,
"radio_sck":7,

"radio_busy":4,
"radio_dio1":5,
"radio_rst":6,
"radio_nss":17,

"radio_busy_2":18,
"radio_dio1_2":8,
"radio_rst_2":3,
"radio_nss_2":46,

"power_min":0,
"power_high":0,
"power_max":0,
"power_default":0,
"power_control":0,
"power_values":[13],

"led_rgb":48,
"led_rgb_isgrb":true,
"ledidx_rgb_status":[0],
"ledidx_rgb_boot":[0],

"button": 0,

"vbat": 10,
"vbat_offset": -197,
"vbat_scale": 1200,

"pwm_outputs":[2,9,11,12,13,14,21,35,36,37,38,39,40,41,42,47]
}
50 changes: 50 additions & 0 deletions RX/DIY S3 DEVKIT 2400 True Diversity VTX PWM 11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"serial_rx":44,
"serial_tx":43,

"radio_miso":15,
"radio_mosi":16,
"radio_sck":7,

"radio_busy":4,
"radio_dio1":5,
"radio_rst":6,
"radio_nss":17,

"radio_busy_2":18,
"radio_dio1_2":8,
"radio_rst_2":3,
"radio_nss_2":46,

"power_min":0,
"power_high":0,
"power_max":0,
"power_default":0,
"power_control":0,
"power_values":[13],

"led_rgb":48,
"led_rgb_isgrb":true,
"ledidx_rgb_status":[0],
"ledidx_rgb_boot":[0],

"button": 0,

"vbat": 10,
"vbat_offset": -197,
"vbat_scale": 1200,

"pwm_outputs":[2,9,11,12,13,14,21,35,36,37,38],

"vtx_nss": 39,
"vtx_miso": 40,
"vtx_mosi": 41,
"vtx_sck": 42,

"vtx_amp_pwm": 45,
"vtx_amp_vpd": 1,
"vtx_amp_vref": 47,

"vtx_amp_vpd_25mW": [600,600,600,600],
"vtx_amp_vpd_100mW": [1500,1500,1500,1500]
}
32 changes: 32 additions & 0 deletions TX/DIY S3 DEVKIT 2400 Gemini.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"serial_rx":2,
"serial_tx":2,

"radio_miso":15,
"radio_mosi":16,
"radio_sck":7,

"radio_busy":4,
"radio_dio1":5,
"radio_rst":6,
"radio_nss":17,

"radio_busy_2":18,
"radio_dio1_2":8,
"radio_rst_2":3,
"radio_nss_2":46,

"power_min":0,
"power_high":0,
"power_max":0,
"power_default":0,
"power_control":0,
"power_values":[13],

"led_rgb":48,
"led_rgb_isgrb":true,
"ledidx_rgb_status":[0],
"ledidx_rgb_boot":[0],

"button": 0
}
29 changes: 29 additions & 0 deletions targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,35 @@
"platform": "esp32",
"firmware": "Unified_ESP32_2400_TX",
"prior_target_name": "DIY_BLE_JOYSTICK"
},
"true_diversity_pwm16_s3": {
"product_name": "DIY ESP32-S3 DevKit Gemini 2.4Ghz TX ",
"lua_name": "Gemini S3 2G4",
"layout_file": "DIY S3 DEVKIT 2400 Gemini.json",
"upload_methods": ["uart", "wifi", "etx"],
"min_version": "3.4.0",
"platform": "esp32-s3",
"firmware": "Unified_ESP32S3_2400_TX"
}
},
"rx_2400": {
"true_diversity_pwm16_s3": {
"product_name": "DIY ESP32-S3 DevKit True Diversity 16xPWM 2.4Ghz RX ",
"lua_name": "16PWM TD 2.4RX",
"layout_file": "DIY S3 DEVKIT 2400 True Diversity PWM 16.json",
"upload_methods": ["uart", "wifi", "betaflight"],
"min_version": "3.4.0",
"platform": "esp32-s3",
"firmware": "Unified_ESP32S3_2400_RX"
},
"true_diversity_vtx_pwm11_s3": {
"product_name": "DIY ESP32-S3 DevKit True Diversity, VTX, 11xPWM 2.4Ghz RX ",
"lua_name": "VTX PWM TD 2.4RX",
"layout_file": "DIY S3 DEVKIT 2400 True Diversity VTX PWM 11.json",
"upload_methods": ["uart", "wifi", "betaflight"],
"min_version": "3.4.0",
"platform": "esp32-s3",
"firmware": "Unified_ESP32S3_2400_RX"
}
}
},
Expand Down

0 comments on commit 9a94716

Please sign in to comment.