Added settings for watch debug mode and to switch the spectrum display on the watch off to save processor power.
This commit is contained in:
46
app/src/main/res/values/pebble_datasource_values.xml
Normal file
46
app/src/main/res/values/pebble_datasource_values.xml
Normal file
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Arrays used to produce list selections in pebble_datasource_prefs.xml -->
|
||||
<resources>
|
||||
<string-array name="pebble_debug_list">
|
||||
<item>"Debug OFF"</item>
|
||||
<item>"Debug ON"</item>
|
||||
</string-array>
|
||||
<string-array name="pebble_debug_values">
|
||||
<item>"0"</item>
|
||||
<item>"1"</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pebble_display_spectrum_list">
|
||||
<item>"Spectrum Display OFF"</item>
|
||||
<item>"Spectrum Display ON"</item>
|
||||
</string-array>
|
||||
<string-array name="pebble_display_spectrum_values">
|
||||
<item>"0"</item>
|
||||
<item>"1"</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pebble_sd_mode_list">
|
||||
<item>"Normal - OpenSeizureDetector FFT"</item>
|
||||
<item>"Raw"</item>
|
||||
<item>"Digital Filter"</item>
|
||||
</string-array>
|
||||
<string-array name="pebble_sd_mode_list_values">
|
||||
<item>"0"</item>
|
||||
<item>"1"</item>
|
||||
<item>"2"</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pebble_sample_freq_list">
|
||||
<item>"100 Hz"</item>
|
||||
<item>"50 Hz"</item>
|
||||
<item>"25 Hz"</item>
|
||||
<item>"10 Hz"</item>
|
||||
</string-array>
|
||||
<string-array name="pebble_sample_freq_list_values">
|
||||
<item>"100"</item>
|
||||
<item>"50"</item>
|
||||
<item>"25"</item>
|
||||
<item>"10"</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
@@ -1,16 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string-array name="pebble_sample_freq_list">
|
||||
<item>"100 Hz"</item>
|
||||
<item>"50 Hz"</item>
|
||||
<item>"25 Hz"</item>
|
||||
<item>"10 Hz"</item>
|
||||
</string-array>
|
||||
<string-array name="pebble_sample_freq_list_values">
|
||||
<item>"100"</item>
|
||||
<item>"50"</item>
|
||||
<item>"25"</item>
|
||||
<item>"10"</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string-array name="pebble_sd_mode_list">
|
||||
<item>"Normal - OpenSeizureDetector FFT"</item>
|
||||
<item>"Raw"</item>
|
||||
<item>"Digital Filter"</item>
|
||||
</string-array>
|
||||
<string-array name="pebble_sd_mode_list_values">
|
||||
<item>"0"</item>
|
||||
<item>"1"</item>
|
||||
<item>"2"</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
@@ -1,4 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- The ListPreference data is defined in pebble_datasource_values.xml -->
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<PreferenceCategory android:title="User Interface Settings">
|
||||
@@ -19,6 +20,22 @@
|
||||
android:title="Manual Alarm Period (sec)" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="Seizure Detector Settings">
|
||||
<ListPreference
|
||||
android:key="PebbleDebug"
|
||||
android:title="Seizure Detector Debug Mode"
|
||||
android:summary="Set Debug mode on or off."
|
||||
android:entries="@array/pebble_debug_list"
|
||||
android:entryValues="@array/pebble_debug_values"
|
||||
android:defaultValue="0"
|
||||
android:dialogTitle="Select Debug Mode" />
|
||||
<ListPreference
|
||||
android:key="PebbleDisplaySpectrum"
|
||||
android:title="Spectrum display Mode"
|
||||
android:summary="Set Display Spectrum mode on or off."
|
||||
android:entries="@array/pebble_display_spectrum_list"
|
||||
android:entryValues="@array/pebble_display_spectrum_values"
|
||||
android:defaultValue="0"
|
||||
android:dialogTitle="Select Display Spectrum Mode" />
|
||||
<ListPreference
|
||||
android:key="PebbleSdMode"
|
||||
android:title="Seizure Detector Mode"
|
||||
|
||||
Reference in New Issue
Block a user