Working on OLED Timeout settings in html
This commit is contained in:
parent
fdd634eadc
commit
be5bc1da6d
35
README.md
35
README.md
|
|
@ -19,7 +19,7 @@ After connection with APRX based DIGI it can be used as KISS-TNC
|
|||
|
||||
## User key functions:
|
||||
### short press (OLED Enabled):
|
||||
* if OLED is OFF a short press will wake it up and show current data
|
||||
* if OLED is OFF a short press will wake it up and show current data (as "Display Timeout" seconds)
|
||||
* if OLED is ON with GPS-FIX immediate sending of a frame with the position from the GPS
|
||||
* if OLED is ON without GPS-FIX, immediate sending of the frame with the position saved in the configuration
|
||||
|
||||
|
|
@ -68,12 +68,41 @@ Wait for the board to reboot, connect to "N0CALL AP" WiFi network, password is:
|
|||
|
||||
### WiFi Settings
|
||||
you can scan for local SSID or manually type in name and password
|
||||
* Scan WiFi: scan for local WiFi networks
|
||||
* SSID: name of the AP to connect to
|
||||
* Password: password of WiFi AP
|
||||
|
||||
### APRS Settings
|
||||
These are main APRS settings such as callsign, SSID and symbol (refer to: http://www.aprs.org/symbols.html). Please remember to turn ON GPS in order to use it as a tracker
|
||||
These are main APRS settings such as callsign, SSID and symbol (refer to: http://www.aprs.org/symbols.html). Please remember to turn ON GPS in order to use it as a tracker.
|
||||
* Frequency: frequency of receive and transmit
|
||||
* Speed: speed of the LoRa APRS packet (default: 300)
|
||||
|
||||
* Callsign and SSID: Callsign of the tracker (e.g: N0CALL-10)
|
||||
* Relay PATH: destination path of APRS packet
|
||||
* Symbol table & Symbol: custom APRS icon
|
||||
* Show altitude: allow altitude to be reported
|
||||
* Show comment: includes comment in APRS packet
|
||||
* Comment: custom message to send
|
||||
* Show Battery: includes current battery voltage
|
||||
|
||||
* Fixed beacon: enables static beacon transmission
|
||||
* Fixed beacon interval: beacon interval in seconds (please more than 30 minutes to avoid overflow on the network)
|
||||
* Latitude & Longitude: fixed beacon position to transmit (in APRS format)
|
||||
|
||||
* Min interval: packet are transmitted not less than x second apart
|
||||
* Max interval: maximum interval between packages
|
||||
* Speed and course: variables to calculate smart beaconing
|
||||
* GPS enabled: enables power to GPS module
|
||||
|
||||
### Device Settings
|
||||
These are main device settings, hover the mouse on the checkboxes and explainations will appear Note: as of 09/2021 "Auto Power OFF" is enabled only with TBEAM 1.0, it will turn board off after unplugging USB
|
||||
These are main device settings, hover the mouse on the checkboxes and explainations will appear.
|
||||
* OLED Display enabled: Enables OLED functionalities
|
||||
* Bluetooth enabled: Enables bluetooth functions (such as TNC via APRSDROID)
|
||||
* LED Signaling: not yet implemented
|
||||
* Auto Power OFF: activate auto power off when USB is unplugged (only for TBEAM 1.0 or later)
|
||||
* Auto Power OFF delay: timer to turn off board after USB is unplugged (only if enabled)
|
||||
* Display show RX Time: when a packet is received display the packet is shown for X seconds
|
||||
* Display Timeout: display will turn OFF after X seconds for better power save (0 to disable and keep OLED ON)
|
||||
|
||||
### Received
|
||||
Here is the list of recently received stations with some details
|
||||
|
|
|
|||
|
|
@ -62,6 +62,6 @@ static const char *const PREF_DEV_AUTO_SHUT_INIT = "shutdown_actini";
|
|||
static const char *const PREF_DEV_AUTO_SHUT_PRESET = "shutdown_dt";
|
||||
static const char *const PREF_DEV_AUTO_SHUT_PRESET_INIT = "shutdown_dtini";
|
||||
static const char *const PREF_DEV_SHOW_OLED_TIME = "sh_oledtime"; // set OLED timeout
|
||||
static const char *const PREF_DEV_SHOW_OLED_TIME_INIT = "sh_oledtime_init";
|
||||
static const char *const PREF_DEV_SHOW_OLED_TIME_INIT = "sh_oledtime_i";
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -675,7 +675,7 @@ void setup(){
|
|||
// Read OLED RX Timer
|
||||
if (!preferences.getBool(PREF_DEV_SHOW_OLED_TIME_INIT)){
|
||||
preferences.putBool(PREF_DEV_SHOW_OLED_TIME_INIT, true);
|
||||
preferences.putInt(PREF_DEV_SHOW_OLED_TIME, showRXTime/1000);
|
||||
preferences.putInt(PREF_DEV_SHOW_OLED_TIME, oled_timeout/1000);
|
||||
}
|
||||
oled_timeout = preferences.getInt(PREF_DEV_SHOW_OLED_TIME) * 1000;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue