Heltec V4 TFT metadata (#9325)
* Upgrade trunk (#9323) Co-authored-by: vidplace7 <1779290+vidplace7@users.noreply.github.com> * ICM20948 IMU sleep (#9324) * Add v4-tft metadata --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: vidplace7 <1779290+vidplace7@users.noreply.github.com> Co-authored-by: HarukiToreda <116696711+HarukiToreda@users.noreply.github.com>
This commit is contained in:
co-authored by
GitHub
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
vidplace7
HarukiToreda
parent
7e4e772113
commit
b4157bd9bb
+2
-2
@@ -9,8 +9,8 @@ plugins:
|
|||||||
lint:
|
lint:
|
||||||
enabled:
|
enabled:
|
||||||
- checkov@3.2.497
|
- checkov@3.2.497
|
||||||
- renovate@42.81.2
|
- renovate@42.81.8
|
||||||
- prettier@3.7.4
|
- prettier@3.8.0
|
||||||
- trufflehog@3.92.4
|
- trufflehog@3.92.4
|
||||||
- yamllint@1.38.0
|
- yamllint@1.38.0
|
||||||
- bandit@1.9.2
|
- bandit@1.9.2
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ int32_t ICM20948Sensor::runOnce()
|
|||||||
int32_t ICM20948Sensor::runOnce()
|
int32_t ICM20948Sensor::runOnce()
|
||||||
{
|
{
|
||||||
#if !defined(MESHTASTIC_EXCLUDE_SCREEN) && HAS_SCREEN
|
#if !defined(MESHTASTIC_EXCLUDE_SCREEN) && HAS_SCREEN
|
||||||
#if defined(MUZI_BASE) // temporarily gated to single device due to feature freeze
|
|
||||||
if (screen && !screen->isScreenOn() && !config.display.wake_on_tap_or_motion && !config.device.double_tap_as_button_press) {
|
if (screen && !screen->isScreenOn() && !config.display.wake_on_tap_or_motion && !config.device.double_tap_as_button_press) {
|
||||||
if (!isAsleep) {
|
if (!isAsleep) {
|
||||||
LOG_DEBUG("sleeping IMU");
|
LOG_DEBUG("sleeping IMU");
|
||||||
@@ -60,7 +59,6 @@ int32_t ICM20948Sensor::runOnce()
|
|||||||
sensor->sleep(false);
|
sensor->sleep(false);
|
||||||
isAsleep = false;
|
isAsleep = false;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
float magX = 0, magY = 0, magZ = 0;
|
float magX = 0, magY = 0, magZ = 0;
|
||||||
if (sensor->dataReady()) {
|
if (sensor->dataReady()) {
|
||||||
|
|||||||
@@ -82,8 +82,8 @@ class ICM20948Sensor : public MotionSensor
|
|||||||
private:
|
private:
|
||||||
ICM20948Singleton *sensor = nullptr;
|
ICM20948Singleton *sensor = nullptr;
|
||||||
bool showingScreen = false;
|
bool showingScreen = false;
|
||||||
#ifdef MUZI_BASE
|
|
||||||
bool isAsleep = false;
|
bool isAsleep = false;
|
||||||
|
#ifdef MUZI_BASE
|
||||||
float highestX = 449.000000, lowestX = -140.000000, highestY = 422.000000, lowestY = -232.000000, highestZ = 749.000000,
|
float highestX = 449.000000, lowestX = -140.000000, highestY = 422.000000, lowestY = -232.000000, highestZ = 749.000000,
|
||||||
lowestZ = 98.000000;
|
lowestZ = 98.000000;
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -34,6 +34,17 @@ build_flags =
|
|||||||
-D I2C_SCL1=3
|
-D I2C_SCL1=3
|
||||||
|
|
||||||
[env:heltec-v4-tft]
|
[env:heltec-v4-tft]
|
||||||
|
custom_meshtastic_hw_model = 110
|
||||||
|
custom_meshtastic_hw_model_slug = HELTEC_V4
|
||||||
|
custom_meshtastic_architecture = esp32-s3
|
||||||
|
custom_meshtastic_actively_supported = true
|
||||||
|
custom_meshtastic_support_level = 1
|
||||||
|
custom_meshtastic_display_name = Heltec V4 TFT
|
||||||
|
custom_meshtastic_images = heltec_v4.svg
|
||||||
|
custom_meshtastic_tags = Heltec
|
||||||
|
custom_meshtastic_requires_dfu = true
|
||||||
|
custom_meshtastic_partition_scheme = 16MB
|
||||||
|
|
||||||
extends = heltec_v4_base
|
extends = heltec_v4_base
|
||||||
build_flags =
|
build_flags =
|
||||||
${heltec_v4_base.build_flags} ;-Os
|
${heltec_v4_base.build_flags} ;-Os
|
||||||
|
|||||||
Reference in New Issue
Block a user