diff --git a/app/src/main/java/com/geeksville/mesh/ui/DeviceSettingsItemList.kt b/app/src/main/java/com/geeksville/mesh/ui/DeviceSettingsItemList.kt index 96df7ff19..be8230a91 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/DeviceSettingsItemList.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/DeviceSettingsItemList.kt @@ -711,6 +711,14 @@ fun DeviceSettingsItemList(viewModel: UIViewModel) { 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 { PreferenceFooter( enabled = loraInput != localConfig.lora, diff --git a/app/src/main/java/com/geeksville/mesh/ui/ModuleSettingsItemList.kt b/app/src/main/java/com/geeksville/mesh/ui/ModuleSettingsItemList.kt index e441b86a7..298e59878 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/ModuleSettingsItemList.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/ModuleSettingsItemList.kt @@ -625,6 +625,38 @@ fun ModuleSettingsItemList(viewModel: UIViewModel) { } 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 { PreferenceFooter( enabled = audioInput != moduleConfig.audio,