mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-09 12:49:40 +00:00
Compare commits
11 Commits
aa615a791d
...
1f7a7c5ecb
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1f7a7c5ecb | ||
![]() |
c62f262f63 | ||
![]() |
798040b5b8 | ||
![]() |
ba582d6ef4 | ||
![]() |
bbf6f01d42 | ||
![]() |
142abb2a4e | ||
![]() |
caf2180075 | ||
![]() |
236d2b92dc | ||
![]() |
e6a2df5b6d | ||
![]() |
f6bb1977bc | ||
![]() |
9b0fbcf1d9 |
@ -66,9 +66,8 @@ int32_t SerialConsole::runOnce()
|
|||||||
{
|
{
|
||||||
#ifdef HELTEC_MESH_SOLAR
|
#ifdef HELTEC_MESH_SOLAR
|
||||||
// After enabling the mesh solar serial port module configuration, command processing is handled by the serial port module.
|
// After enabling the mesh solar serial port module configuration, command processing is handled by the serial port module.
|
||||||
if(moduleConfig.serial.enabled && moduleConfig.serial.override_console_serial_port
|
if (moduleConfig.serial.enabled && moduleConfig.serial.override_console_serial_port &&
|
||||||
&& moduleConfig.serial.mode==meshtastic_ModuleConfig_SerialConfig_Serial_Mode_MS_CONFIG)
|
moduleConfig.serial.mode == meshtastic_ModuleConfig_SerialConfig_Serial_Mode_MS_CONFIG) {
|
||||||
{
|
|
||||||
return 250;
|
return 250;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -207,10 +207,10 @@ typedef enum _meshtastic_Config_DisplayConfig_OledType {
|
|||||||
meshtastic_Config_DisplayConfig_OledType_OLED_SSD1306 = 1,
|
meshtastic_Config_DisplayConfig_OledType_OLED_SSD1306 = 1,
|
||||||
/* Default / Autodetect */
|
/* Default / Autodetect */
|
||||||
meshtastic_Config_DisplayConfig_OledType_OLED_SH1106 = 2,
|
meshtastic_Config_DisplayConfig_OledType_OLED_SH1106 = 2,
|
||||||
/* Can not be auto detected but set by proto. Used for 128x64 screens */
|
|
||||||
meshtastic_Config_DisplayConfig_OledType_OLED_SH1107 = 3,
|
|
||||||
/* Can not be auto detected but set by proto. Used for 128x128 screens */
|
/* Can not be auto detected but set by proto. Used for 128x128 screens */
|
||||||
meshtastic_Config_DisplayConfig_OledType_OLED_SH1107_128_128 = 4
|
meshtastic_Config_DisplayConfig_OledType_OLED_SH1107 = 3,
|
||||||
|
/* Can not be auto detected but set by proto. Used for 128x64 screens */
|
||||||
|
meshtastic_Config_DisplayConfig_OledType_OLED_SH1107_128_64 = 4
|
||||||
} meshtastic_Config_DisplayConfig_OledType;
|
} meshtastic_Config_DisplayConfig_OledType;
|
||||||
|
|
||||||
typedef enum _meshtastic_Config_DisplayConfig_DisplayMode {
|
typedef enum _meshtastic_Config_DisplayConfig_DisplayMode {
|
||||||
@ -682,8 +682,8 @@ extern "C" {
|
|||||||
#define _meshtastic_Config_DisplayConfig_DisplayUnits_ARRAYSIZE ((meshtastic_Config_DisplayConfig_DisplayUnits)(meshtastic_Config_DisplayConfig_DisplayUnits_IMPERIAL+1))
|
#define _meshtastic_Config_DisplayConfig_DisplayUnits_ARRAYSIZE ((meshtastic_Config_DisplayConfig_DisplayUnits)(meshtastic_Config_DisplayConfig_DisplayUnits_IMPERIAL+1))
|
||||||
|
|
||||||
#define _meshtastic_Config_DisplayConfig_OledType_MIN meshtastic_Config_DisplayConfig_OledType_OLED_AUTO
|
#define _meshtastic_Config_DisplayConfig_OledType_MIN meshtastic_Config_DisplayConfig_OledType_OLED_AUTO
|
||||||
#define _meshtastic_Config_DisplayConfig_OledType_MAX meshtastic_Config_DisplayConfig_OledType_OLED_SH1107_128_128
|
#define _meshtastic_Config_DisplayConfig_OledType_MAX meshtastic_Config_DisplayConfig_OledType_OLED_SH1107_128_64
|
||||||
#define _meshtastic_Config_DisplayConfig_OledType_ARRAYSIZE ((meshtastic_Config_DisplayConfig_OledType)(meshtastic_Config_DisplayConfig_OledType_OLED_SH1107_128_128+1))
|
#define _meshtastic_Config_DisplayConfig_OledType_ARRAYSIZE ((meshtastic_Config_DisplayConfig_OledType)(meshtastic_Config_DisplayConfig_OledType_OLED_SH1107_128_64+1))
|
||||||
|
|
||||||
#define _meshtastic_Config_DisplayConfig_DisplayMode_MIN meshtastic_Config_DisplayConfig_DisplayMode_DEFAULT
|
#define _meshtastic_Config_DisplayConfig_DisplayMode_MIN meshtastic_Config_DisplayConfig_DisplayMode_DEFAULT
|
||||||
#define _meshtastic_Config_DisplayConfig_DisplayMode_MAX meshtastic_Config_DisplayConfig_DisplayMode_COLOR
|
#define _meshtastic_Config_DisplayConfig_DisplayMode_MAX meshtastic_Config_DisplayConfig_DisplayMode_COLOR
|
||||||
|
@ -270,8 +270,6 @@ typedef enum _meshtastic_HardwareModel {
|
|||||||
/* MeshSolar is an integrated power management and communication solution designed for outdoor low-power devices.
|
/* MeshSolar is an integrated power management and communication solution designed for outdoor low-power devices.
|
||||||
https://heltec.org/project/meshsolar/ */
|
https://heltec.org/project/meshsolar/ */
|
||||||
meshtastic_HardwareModel_HELTEC_MESH_SOLAR = 108,
|
meshtastic_HardwareModel_HELTEC_MESH_SOLAR = 108,
|
||||||
/* Lilygo T-Echo Lite */
|
|
||||||
meshtastic_HardwareModel_T_ECHO_LITE = 109,
|
|
||||||
/* ------------------------------------------------------------------------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
Reserved ID For developing private Ports. These will show up in live traffic sparsely, so we can use a high number. Keep it within 8 bits.
|
Reserved ID For developing private Ports. These will show up in live traffic sparsely, so we can use a high number. Keep it within 8 bits.
|
||||||
------------------------------------------------------------------------------------------------------------------------------------------ */
|
------------------------------------------------------------------------------------------------------------------------------------------ */
|
||||||
|
@ -319,7 +319,7 @@ typedef struct _meshtastic_ModuleConfig_RangeTestConfig {
|
|||||||
bool save;
|
bool save;
|
||||||
/* Bool indicating that the node should cleanup / destroy it's RangeTest.csv file.
|
/* Bool indicating that the node should cleanup / destroy it's RangeTest.csv file.
|
||||||
ESP32 Only */
|
ESP32 Only */
|
||||||
bool clear;
|
bool clear_on_reboot;
|
||||||
} meshtastic_ModuleConfig_RangeTestConfig;
|
} meshtastic_ModuleConfig_RangeTestConfig;
|
||||||
|
|
||||||
/* Configuration for both device and environment metrics */
|
/* Configuration for both device and environment metrics */
|
||||||
@ -613,7 +613,7 @@ extern "C" {
|
|||||||
#define meshtastic_ModuleConfig_RangeTestConfig_enabled_tag 1
|
#define meshtastic_ModuleConfig_RangeTestConfig_enabled_tag 1
|
||||||
#define meshtastic_ModuleConfig_RangeTestConfig_sender_tag 2
|
#define meshtastic_ModuleConfig_RangeTestConfig_sender_tag 2
|
||||||
#define meshtastic_ModuleConfig_RangeTestConfig_save_tag 3
|
#define meshtastic_ModuleConfig_RangeTestConfig_save_tag 3
|
||||||
#define meshtastic_ModuleConfig_RangeTestConfig_clear_tag 4
|
#define meshtastic_ModuleConfig_RangeTestConfig_clear_on_reboot_tag 4
|
||||||
#define meshtastic_ModuleConfig_TelemetryConfig_device_update_interval_tag 1
|
#define meshtastic_ModuleConfig_TelemetryConfig_device_update_interval_tag 1
|
||||||
#define meshtastic_ModuleConfig_TelemetryConfig_environment_update_interval_tag 2
|
#define meshtastic_ModuleConfig_TelemetryConfig_environment_update_interval_tag 2
|
||||||
#define meshtastic_ModuleConfig_TelemetryConfig_environment_measurement_enabled_tag 3
|
#define meshtastic_ModuleConfig_TelemetryConfig_environment_measurement_enabled_tag 3
|
||||||
@ -808,7 +808,7 @@ X(a, STATIC, SINGULAR, BOOL, is_server, 6)
|
|||||||
X(a, STATIC, SINGULAR, BOOL, enabled, 1) \
|
X(a, STATIC, SINGULAR, BOOL, enabled, 1) \
|
||||||
X(a, STATIC, SINGULAR, UINT32, sender, 2) \
|
X(a, STATIC, SINGULAR, UINT32, sender, 2) \
|
||||||
X(a, STATIC, SINGULAR, BOOL, save, 3) \
|
X(a, STATIC, SINGULAR, BOOL, save, 3) \
|
||||||
X(a, STATIC, SINGULAR, BOOL, clear, 4)
|
X(a, STATIC, SINGULAR, BOOL, clear_on_reboot, 4)
|
||||||
#define meshtastic_ModuleConfig_RangeTestConfig_CALLBACK NULL
|
#define meshtastic_ModuleConfig_RangeTestConfig_CALLBACK NULL
|
||||||
#define meshtastic_ModuleConfig_RangeTestConfig_DEFAULT NULL
|
#define meshtastic_ModuleConfig_RangeTestConfig_DEFAULT NULL
|
||||||
|
|
||||||
|
@ -99,9 +99,7 @@ typedef enum _meshtastic_TelemetrySensorType {
|
|||||||
/* Sensirion SFA30 Formaldehyde sensor */
|
/* Sensirion SFA30 Formaldehyde sensor */
|
||||||
meshtastic_TelemetrySensorType_SFA30 = 42,
|
meshtastic_TelemetrySensorType_SFA30 = 42,
|
||||||
/* SEN5X PM SENSORS */
|
/* SEN5X PM SENSORS */
|
||||||
meshtastic_TelemetrySensorType_SEN5X = 43,
|
meshtastic_TelemetrySensorType_SEN5X = 43
|
||||||
/* TSL2561 light sensor */
|
|
||||||
meshtastic_TelemetrySensorType_TSL2561 = 44
|
|
||||||
} meshtastic_TelemetrySensorType;
|
} meshtastic_TelemetrySensorType;
|
||||||
|
|
||||||
/* Struct definitions */
|
/* Struct definitions */
|
||||||
@ -436,8 +434,8 @@ extern "C" {
|
|||||||
|
|
||||||
/* Helper constants for enums */
|
/* Helper constants for enums */
|
||||||
#define _meshtastic_TelemetrySensorType_MIN meshtastic_TelemetrySensorType_SENSOR_UNSET
|
#define _meshtastic_TelemetrySensorType_MIN meshtastic_TelemetrySensorType_SENSOR_UNSET
|
||||||
#define _meshtastic_TelemetrySensorType_MAX meshtastic_TelemetrySensorType_TSL2561
|
#define _meshtastic_TelemetrySensorType_MAX meshtastic_TelemetrySensorType_SEN5X
|
||||||
#define _meshtastic_TelemetrySensorType_ARRAYSIZE ((meshtastic_TelemetrySensorType)(meshtastic_TelemetrySensorType_TSL2561+1))
|
#define _meshtastic_TelemetrySensorType_ARRAYSIZE ((meshtastic_TelemetrySensorType)(meshtastic_TelemetrySensorType_SEN5X+1))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ int32_t RangeTestModule::runOnce()
|
|||||||
// moduleConfig.range_test.enabled = 1;
|
// moduleConfig.range_test.enabled = 1;
|
||||||
// moduleConfig.range_test.sender = 30;
|
// moduleConfig.range_test.sender = 30;
|
||||||
// moduleConfig.range_test.save = 1;
|
// moduleConfig.range_test.save = 1;
|
||||||
// moduleConfig.range_test.clear = 1;
|
// moduleConfig.range_test.clear_on_reboot = 1;
|
||||||
|
|
||||||
// Fixed position is useful when testing indoors.
|
// Fixed position is useful when testing indoors.
|
||||||
// config.position.fixed_position = 1;
|
// config.position.fixed_position = 1;
|
||||||
@ -54,7 +54,7 @@ int32_t RangeTestModule::runOnce()
|
|||||||
|
|
||||||
firstTime = 0;
|
firstTime = 0;
|
||||||
|
|
||||||
if (moduleConfig.range_test.clear) {
|
if (moduleConfig.range_test.clear_on_reboot) {
|
||||||
// User wants to delete previous range test(s)
|
// User wants to delete previous range test(s)
|
||||||
LOG_INFO("Range Test Module - Clearing out previous test file");
|
LOG_INFO("Range Test Module - Clearing out previous test file");
|
||||||
rangeTestModuleRadio->removeFile();
|
rangeTestModuleRadio->removeFile();
|
||||||
|
@ -100,4 +100,3 @@
|
|||||||
#define MODEM_DTR 8
|
#define MODEM_DTR 8
|
||||||
#define MODEM_RX 10
|
#define MODEM_RX 10
|
||||||
#define MODEM_TX 11
|
#define MODEM_TX 11
|
||||||
|
|
||||||
|
@ -39,7 +39,6 @@ extern "C" {
|
|||||||
#define NUM_ANALOG_INPUTS (1)
|
#define NUM_ANALOG_INPUTS (1)
|
||||||
#define NUM_ANALOG_OUTPUTS (0)
|
#define NUM_ANALOG_OUTPUTS (0)
|
||||||
|
|
||||||
|
|
||||||
#define PIN_LED1 (0 + 12) // green (confirmed on 1.0 board)
|
#define PIN_LED1 (0 + 12) // green (confirmed on 1.0 board)
|
||||||
#define LED_BLUE PIN_LED1 // fake for bluefruit library
|
#define LED_BLUE PIN_LED1 // fake for bluefruit library
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
Loading…
Reference in New Issue
Block a user