kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
add new proto configs
rodzic
6c5a718410
commit
c9ac6860db
|
@ -711,6 +711,14 @@ fun DeviceSettingsItemList(viewModel: UIViewModel) {
|
||||||
onValueChanged = { loraInput = loraInput.copy { channelNum = it } })
|
onValueChanged = { loraInput = loraInput.copy { channelNum = it } })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
item {
|
||||||
|
SwitchPreference(title = "Override Duty Cycle",
|
||||||
|
checked = loraInput.overrideDutyCycle,
|
||||||
|
enabled = connected,
|
||||||
|
onCheckedChange = { loraInput = loraInput.copy { overrideDutyCycle = it } })
|
||||||
|
}
|
||||||
|
item { Divider() }
|
||||||
|
|
||||||
item {
|
item {
|
||||||
PreferenceFooter(
|
PreferenceFooter(
|
||||||
enabled = loraInput != localConfig.lora,
|
enabled = loraInput != localConfig.lora,
|
||||||
|
|
|
@ -625,6 +625,38 @@ fun ModuleSettingsItemList(viewModel: UIViewModel) {
|
||||||
}
|
}
|
||||||
item { Divider() }
|
item { Divider() }
|
||||||
|
|
||||||
|
item {
|
||||||
|
EditTextPreference(title = "I2S word select",
|
||||||
|
value = audioInput.i2SWs,
|
||||||
|
enabled = connected,
|
||||||
|
keyboardActions = KeyboardActions(onDone = { focusManager.clearFocus() }),
|
||||||
|
onValueChanged = { audioInput = audioInput.copy { i2SWs = it } })
|
||||||
|
}
|
||||||
|
|
||||||
|
item {
|
||||||
|
EditTextPreference(title = "I2S data in",
|
||||||
|
value = audioInput.i2SSd,
|
||||||
|
enabled = connected,
|
||||||
|
keyboardActions = KeyboardActions(onDone = { focusManager.clearFocus() }),
|
||||||
|
onValueChanged = { audioInput = audioInput.copy { i2SSd = it } })
|
||||||
|
}
|
||||||
|
|
||||||
|
item {
|
||||||
|
EditTextPreference(title = "I2S data out",
|
||||||
|
value = audioInput.i2SDin,
|
||||||
|
enabled = connected,
|
||||||
|
keyboardActions = KeyboardActions(onDone = { focusManager.clearFocus() }),
|
||||||
|
onValueChanged = { audioInput = audioInput.copy { i2SDin = it } })
|
||||||
|
}
|
||||||
|
|
||||||
|
item {
|
||||||
|
EditTextPreference(title = "I2S clock",
|
||||||
|
value = audioInput.i2SSck,
|
||||||
|
enabled = connected,
|
||||||
|
keyboardActions = KeyboardActions(onDone = { focusManager.clearFocus() }),
|
||||||
|
onValueChanged = { audioInput = audioInput.copy { i2SSck = it } })
|
||||||
|
}
|
||||||
|
|
||||||
item {
|
item {
|
||||||
PreferenceFooter(
|
PreferenceFooter(
|
||||||
enabled = audioInput != moduleConfig.audio,
|
enabled = audioInput != moduleConfig.audio,
|
||||||
|
|
Ładowanie…
Reference in New Issue