Skip to content

Commit

Permalink
feat: Add RAK2560 hardware model and graphic
Browse files Browse the repository at this point in the history
Adds the RAK2560 to the list of supported devices and associates it with the corresponding vector drawable.
  • Loading branch information
jamesarich committed Jan 11, 2025
1 parent a3a3958 commit 464a3bd
Show file tree
Hide file tree
Showing 3 changed files with 281 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/src/main/assets/device_hardware.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,22 @@
],
"requiresDfu": true
},
{
"hwModel": 22,
"hwModelSlug": "WISMESH_HUB",
"platformioTarget": "rak2560",
"architecture": "nrf52840",
"activelySupported": true,
"supportLevel": 1,
"displayName": "RAK WisMesh Repeater",
"tags": [
"RAK"
],
"images": [
"rak2560.svg"
],
"requiresDfu": true
},
{
"hwModel": 25,
"hwModelSlug": "STATION_G1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ private fun getDrawableFrom(hwModel: Int): Int = when (hwModel) {
HardwareModel.RPI_PICO_VALUE -> R.drawable.hw_pico
HardwareModel.NRF52_PROMICRO_DIY_VALUE -> R.drawable.hw_promicro
HardwareModel.RAK11310_VALUE -> R.drawable.hw_rak11310
HardwareModel.RAK2560_VALUE -> R.drawable.hw_rak2560
HardwareModel.RAK4631_VALUE -> R.drawable.hw_rak4631_case
HardwareModel.RPI_PICO2_VALUE -> R.drawable.hw_rpipicow
HardwareModel.SENSECAP_INDICATOR_VALUE -> R.drawable.hw_seeed_sensecap_indicator
Expand Down
Loading

0 comments on commit 464a3bd

Please sign in to comment.