mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-31 06:02:02 +00:00
Compare commits
16 Commits
agc-reset
...
fix-ota-sc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b1fa550a1 | ||
|
|
68733a6c51 | ||
|
|
22617076f8 | ||
|
|
6f5a7672b4 | ||
|
|
e08c050720 | ||
|
|
28b4f37a93 | ||
|
|
b18742c211 | ||
|
|
03084f6d3b | ||
|
|
94d7b71aa8 | ||
|
|
415686dd06 | ||
|
|
b2f2f6b305 | ||
|
|
df400850c1 | ||
|
|
6ab2f02dbc | ||
|
|
d7d6fe7f0f | ||
|
|
d44ceb6eb2 | ||
|
|
4fd0a8276b |
41
.github/workflows/models_issue_triage.yml
vendored
41
.github/workflows/models_issue_triage.yml
vendored
@@ -100,7 +100,12 @@ jobs:
|
|||||||
prompt: |
|
prompt: |
|
||||||
Analyze this GitHub issue for completeness and determine if it needs labels.
|
Analyze this GitHub issue for completeness and determine if it needs labels.
|
||||||
|
|
||||||
If this looks like a bug on the device/firmware (crash, reboot, lockup, radio issues, GPS issues, display issues, power/sleep issues), request device logs and explain how to get them:
|
IMPORTANT: Distinguish between:
|
||||||
|
- Device/firmware bugs (crashes, reboots, lockups, radio/GPS/display/power issues) - these need device logs
|
||||||
|
- Build/release/packaging issues (missing files, CI failures, download problems) - these do NOT need device logs
|
||||||
|
- Documentation or website issues - these do NOT need device logs
|
||||||
|
|
||||||
|
If this is a device/firmware bug, request device logs and explain how to get them:
|
||||||
|
|
||||||
Web Flasher logs:
|
Web Flasher logs:
|
||||||
- Go to https://flasher.meshtastic.org
|
- Go to https://flasher.meshtastic.org
|
||||||
@@ -113,20 +118,18 @@ jobs:
|
|||||||
|
|
||||||
Also request key context if missing: device model/variant, firmware version, region, steps to reproduce, expected vs actual.
|
Also request key context if missing: device model/variant, firmware version, region, steps to reproduce, expected vs actual.
|
||||||
|
|
||||||
Respond ONLY with JSON:
|
Respond ONLY with valid JSON (no markdown, no code fences):
|
||||||
{
|
{"complete": true, "comment": "", "label": "none"}
|
||||||
"complete": true|false,
|
OR
|
||||||
"comment": "Your helpful comment requesting missing info, or empty string if complete",
|
{"complete": false, "comment": "Your helpful comment", "label": "needs-logs"}
|
||||||
"label": "needs-logs" | "needs-info" | "none"
|
|
||||||
}
|
|
||||||
|
|
||||||
Use "needs-logs" if this is a device bug AND no logs are attached.
|
Use "needs-logs" ONLY if this is a device/firmware bug AND no logs are attached.
|
||||||
Use "needs-info" if basic info like firmware version or steps to reproduce are missing.
|
Use "needs-info" if basic info like firmware version or steps to reproduce are missing.
|
||||||
Use "none" if the issue is complete or is a feature request.
|
Use "none" if the issue is complete, is a feature request, or is a build/CI/packaging issue.
|
||||||
|
|
||||||
Title: ${{ github.event.issue.title }}
|
Title: ${{ github.event.issue.title }}
|
||||||
Body: ${{ github.event.issue.body }}
|
Body: ${{ github.event.issue.body }}
|
||||||
system-prompt: You are a helpful assistant that triages GitHub issues. Be conservative with labels.
|
system-prompt: You are a helpful assistant that triages GitHub issues. Be conservative with labels. Only request device logs for actual device/firmware bugs, not for build/release/CI issues.
|
||||||
model: openai/gpt-4o-mini
|
model: openai/gpt-4o-mini
|
||||||
|
|
||||||
- name: Process analysis result
|
- name: Process analysis result
|
||||||
@@ -137,9 +140,12 @@ jobs:
|
|||||||
AI_RESPONSE: ${{ steps.analysis.outputs.response }}
|
AI_RESPONSE: ${{ steps.analysis.outputs.response }}
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const raw = (process.env.AI_RESPONSE || '').trim();
|
let raw = (process.env.AI_RESPONSE || '').trim();
|
||||||
|
|
||||||
let complete = false;
|
// Strip markdown code fences if present
|
||||||
|
raw = raw.replace(/^```(?:json)?\s*/i, '').replace(/\s*```$/i, '').trim();
|
||||||
|
|
||||||
|
let complete = true;
|
||||||
let comment = '';
|
let comment = '';
|
||||||
let label = 'none';
|
let label = 'none';
|
||||||
|
|
||||||
@@ -149,9 +155,10 @@ jobs:
|
|||||||
comment = (parsed.comment ?? '').toString().trim();
|
comment = (parsed.comment ?? '').toString().trim();
|
||||||
label = (parsed.label ?? 'none').toString().trim().toLowerCase();
|
label = (parsed.label ?? 'none').toString().trim().toLowerCase();
|
||||||
} catch {
|
} catch {
|
||||||
// If JSON parse fails, treat as incomplete with raw response as comment
|
// If JSON parse fails, log warning and don't comment (avoid posting raw JSON)
|
||||||
complete = false;
|
console.log('Failed to parse AI response as JSON:', raw);
|
||||||
comment = raw;
|
complete = true;
|
||||||
|
comment = '';
|
||||||
label = 'none';
|
label = 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,7 +166,9 @@ jobs:
|
|||||||
const allowedLabels = new Set(['needs-logs', 'needs-info', 'none']);
|
const allowedLabels = new Set(['needs-logs', 'needs-info', 'none']);
|
||||||
if (!allowedLabels.has(label)) label = 'none';
|
if (!allowedLabels.has(label)) label = 'none';
|
||||||
|
|
||||||
core.setOutput('should_comment', (!complete && comment.length > 0) ? 'true' : 'false');
|
// Only comment if we have a valid parsed comment (not raw JSON)
|
||||||
|
const shouldComment = !complete && comment.length > 0 && !comment.startsWith('{');
|
||||||
|
core.setOutput('should_comment', shouldComment ? 'true' : 'false');
|
||||||
core.setOutput('comment_body', comment);
|
core.setOutput('comment_body', comment);
|
||||||
core.setOutput('label', label);
|
core.setOutput('label', label);
|
||||||
|
|
||||||
|
|||||||
3
.github/workflows/models_pr_triage.yml
vendored
3
.github/workflows/models_pr_triage.yml
vendored
@@ -88,9 +88,10 @@ jobs:
|
|||||||
|
|
||||||
# ─────────────────────────────────────────────────────────────────────────
|
# ─────────────────────────────────────────────────────────────────────────
|
||||||
# Step 3: Auto-label PR type (bugfix/hardware-support/enhancement)
|
# Step 3: Auto-label PR type (bugfix/hardware-support/enhancement)
|
||||||
|
# Only skip for spam/ai-generated; still classify needs-review PRs
|
||||||
# ─────────────────────────────────────────────────────────────────────────
|
# ─────────────────────────────────────────────────────────────────────────
|
||||||
- name: Classify PR for labeling
|
- name: Classify PR for labeling
|
||||||
if: steps.check-labels.outputs.skip_all != 'true' && steps.check-labels.outputs.has_type_label != 'true' && (steps.quality.outputs.response == 'ok' || steps.quality.outputs.response == '')
|
if: steps.check-labels.outputs.skip_all != 'true' && steps.check-labels.outputs.has_type_label != 'true' && steps.quality.outputs.response != 'spam' && steps.quality.outputs.response != 'ai-generated'
|
||||||
uses: actions/ai-inference@v2
|
uses: actions/ai-inference@v2
|
||||||
id: classify
|
id: classify
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|||||||
@@ -156,16 +156,8 @@ IF %BPS_RESET% EQU 1 (
|
|||||||
SET "PROGNAME=!FILENAME:.factory.bin=!"
|
SET "PROGNAME=!FILENAME:.factory.bin=!"
|
||||||
CALL :LOG_MESSAGE DEBUG "Computed PROGNAME: !PROGNAME!"
|
CALL :LOG_MESSAGE DEBUG "Computed PROGNAME: !PROGNAME!"
|
||||||
|
|
||||||
IF "__!MCU!__" == "__esp32s3__" (
|
@REM Determine OTA filename based on MCU type (unified OTA format)
|
||||||
@REM We are working with ESP32-S3
|
SET "OTA_FILENAME=mt-!MCU!-ota.bin"
|
||||||
SET "OTA_FILENAME=bleota-s3.bin"
|
|
||||||
) ELSE IF "__!MCU!__" == "__esp32c3__" (
|
|
||||||
@REM We are working with ESP32-C3
|
|
||||||
SET "OTA_FILENAME=bleota-c3.bin"
|
|
||||||
) ELSE (
|
|
||||||
@REM Everything else
|
|
||||||
SET "OTA_FILENAME=bleota.bin"
|
|
||||||
)
|
|
||||||
CALL :LOG_MESSAGE DEBUG "Set OTA_FILENAME to: !OTA_FILENAME!"
|
CALL :LOG_MESSAGE DEBUG "Set OTA_FILENAME to: !OTA_FILENAME!"
|
||||||
|
|
||||||
@REM Set SPIFFS filename with "littlefs-" prefix.
|
@REM Set SPIFFS filename with "littlefs-" prefix.
|
||||||
|
|||||||
@@ -131,14 +131,8 @@ if [[ -f "$FILENAME" && "$FILENAME" == *.factory.bin ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Determine OTA filename based on MCU type
|
# Determine OTA filename based on MCU type (unified OTA format)
|
||||||
if [ "$MCU" == "esp32s3" ]; then
|
OTAFILE="mt-${MCU}-ota.bin"
|
||||||
OTAFILE=bleota-s3.bin
|
|
||||||
elif [ "$MCU" == "esp32c3" ]; then
|
|
||||||
OTAFILE=bleota-c3.bin
|
|
||||||
else
|
|
||||||
OTAFILE=bleota.bin
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set SPIFFS filename with "littlefs-" prefix.
|
# Set SPIFFS filename with "littlefs-" prefix.
|
||||||
SPIFFSFILE="littlefs-${PROGNAME/firmware-/}.bin"
|
SPIFFSFILE="littlefs-${PROGNAME/firmware-/}.bin"
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ build_flags = -Wno-missing-field-initializers
|
|||||||
-DMESHTASTIC_EXCLUDE_GENERIC_THREAD_MODULE=1
|
-DMESHTASTIC_EXCLUDE_GENERIC_THREAD_MODULE=1
|
||||||
-DMESHTASTIC_EXCLUDE_POWERMON=1
|
-DMESHTASTIC_EXCLUDE_POWERMON=1
|
||||||
-D MAX_THREADS=40 ; As we've split modules, we have more threads to manage
|
-D MAX_THREADS=40 ; As we've split modules, we have more threads to manage
|
||||||
|
-DLED_BUILTIN=-1
|
||||||
#-DBUILD_EPOCH=$UNIX_TIME ; set in platformio-custom.py now
|
#-DBUILD_EPOCH=$UNIX_TIME ; set in platformio-custom.py now
|
||||||
#-D OLED_PL=1
|
#-D OLED_PL=1
|
||||||
#-D DEBUG_HEAP=1 ; uncomment to add free heap space / memory leak debugging logs
|
#-D DEBUG_HEAP=1 ; uncomment to add free heap space / memory leak debugging logs
|
||||||
@@ -119,7 +120,7 @@ lib_deps =
|
|||||||
[device-ui_base]
|
[device-ui_base]
|
||||||
lib_deps =
|
lib_deps =
|
||||||
# renovate: datasource=git-refs depName=meshtastic/device-ui packageName=https://github.com/meshtastic/device-ui gitBranch=master
|
# renovate: datasource=git-refs depName=meshtastic/device-ui packageName=https://github.com/meshtastic/device-ui gitBranch=master
|
||||||
https://github.com/meshtastic/device-ui/archive/69739b84f87a91568d3c421498bc89977937a141.zip
|
https://github.com/meshtastic/device-ui/archive/63967a4a557d33d56fc5746f9128200dde2d88c5.zip
|
||||||
|
|
||||||
; Common libs for environmental measurements in telemetry module
|
; Common libs for environmental measurements in telemetry module
|
||||||
[environmental_base]
|
[environmental_base]
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
#if !MESHTASTIC_EXCLUDE_INPUTBROKER
|
#if !MESHTASTIC_EXCLUDE_INPUTBROKER
|
||||||
#include "buzz/BuzzerFeedbackThread.h"
|
#include "buzz/BuzzerFeedbackThread.h"
|
||||||
|
#include "modules/StatusLEDModule.h"
|
||||||
#include "modules/SystemCommandsModule.h"
|
#include "modules/SystemCommandsModule.h"
|
||||||
#endif
|
#endif
|
||||||
#if !MESHTASTIC_EXCLUDE_PKI
|
#if !MESHTASTIC_EXCLUDE_PKI
|
||||||
@@ -90,6 +91,9 @@
|
|||||||
#include "modules/DropzoneModule.h"
|
#include "modules/DropzoneModule.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAS_HARDWARE_WATCHDOG)
|
||||||
|
#include "watchdog/watchdogThread.h"
|
||||||
|
#endif
|
||||||
/**
|
/**
|
||||||
* Create module instances here. If you are adding a new module, you must 'new' it here (or somewhere else)
|
* Create module instances here. If you are adding a new module, you must 'new' it here (or somewhere else)
|
||||||
*/
|
*/
|
||||||
@@ -228,6 +232,9 @@ void setupModules()
|
|||||||
#if !MESHTASTIC_EXCLUDE_RANGETEST && !MESHTASTIC_EXCLUDE_GPS
|
#if !MESHTASTIC_EXCLUDE_RANGETEST && !MESHTASTIC_EXCLUDE_GPS
|
||||||
if (moduleConfig.has_range_test && moduleConfig.range_test.enabled)
|
if (moduleConfig.has_range_test && moduleConfig.range_test.enabled)
|
||||||
new RangeTestModule();
|
new RangeTestModule();
|
||||||
|
#endif
|
||||||
|
#if defined(HAS_HARDWARE_WATCHDOG)
|
||||||
|
watchdogThread = new WatchdogThread();
|
||||||
#endif
|
#endif
|
||||||
// NOTE! This module must be added LAST because it likes to check for replies from other modules and avoid sending extra
|
// NOTE! This module must be added LAST because it likes to check for replies from other modules and avoid sending extra
|
||||||
// acks
|
// acks
|
||||||
|
|||||||
@@ -529,37 +529,46 @@ bool EnvironmentTelemetryModule::handleReceivedProtobuf(const meshtastic_MeshPac
|
|||||||
|
|
||||||
bool EnvironmentTelemetryModule::getEnvironmentTelemetry(meshtastic_Telemetry *m)
|
bool EnvironmentTelemetryModule::getEnvironmentTelemetry(meshtastic_Telemetry *m)
|
||||||
{
|
{
|
||||||
bool valid = true;
|
bool valid = false;
|
||||||
bool hasSensor = false;
|
bool hasSensor = false;
|
||||||
|
// getMetrics() doesn't always get evaluated because of
|
||||||
|
// short-circuit evaluation rules in c++
|
||||||
|
bool get_metrics;
|
||||||
m->time = getTime();
|
m->time = getTime();
|
||||||
m->which_variant = meshtastic_Telemetry_environment_metrics_tag;
|
m->which_variant = meshtastic_Telemetry_environment_metrics_tag;
|
||||||
m->variant.environment_metrics = meshtastic_EnvironmentMetrics_init_zero;
|
m->variant.environment_metrics = meshtastic_EnvironmentMetrics_init_zero;
|
||||||
|
|
||||||
for (TelemetrySensor *sensor : sensors) {
|
for (TelemetrySensor *sensor : sensors) {
|
||||||
valid = valid && sensor->getMetrics(m);
|
get_metrics = sensor->getMetrics(m); // avoid short-circuit evaluation rules
|
||||||
|
valid = valid || get_metrics;
|
||||||
hasSensor = true;
|
hasSensor = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef T1000X_SENSOR_EN
|
#ifndef T1000X_SENSOR_EN
|
||||||
if (ina219Sensor.hasSensor()) {
|
if (ina219Sensor.hasSensor()) {
|
||||||
valid = valid && ina219Sensor.getMetrics(m);
|
get_metrics = ina219Sensor.getMetrics(m);
|
||||||
|
valid = valid || get_metrics;
|
||||||
hasSensor = true;
|
hasSensor = true;
|
||||||
}
|
}
|
||||||
if (ina260Sensor.hasSensor()) {
|
if (ina260Sensor.hasSensor()) {
|
||||||
valid = valid && ina260Sensor.getMetrics(m);
|
get_metrics = ina260Sensor.getMetrics(m);
|
||||||
|
valid = valid || get_metrics;
|
||||||
hasSensor = true;
|
hasSensor = true;
|
||||||
}
|
}
|
||||||
if (ina3221Sensor.hasSensor()) {
|
if (ina3221Sensor.hasSensor()) {
|
||||||
valid = valid && ina3221Sensor.getMetrics(m);
|
get_metrics = ina3221Sensor.getMetrics(m);
|
||||||
|
valid = valid || get_metrics;
|
||||||
hasSensor = true;
|
hasSensor = true;
|
||||||
}
|
}
|
||||||
if (max17048Sensor.hasSensor()) {
|
if (max17048Sensor.hasSensor()) {
|
||||||
valid = valid && max17048Sensor.getMetrics(m);
|
get_metrics = max17048Sensor.getMetrics(m);
|
||||||
|
valid = valid || get_metrics;
|
||||||
hasSensor = true;
|
hasSensor = true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAS_RAKPROT
|
#ifdef HAS_RAKPROT
|
||||||
valid = valid && rak9154Sensor.getMetrics(m);
|
get_metrics = rak9154Sensor.getMetrics(m);
|
||||||
|
valid = valid || get_metrics;
|
||||||
hasSensor = true;
|
hasSensor = true;
|
||||||
#endif
|
#endif
|
||||||
return valid && hasSensor;
|
return valid && hasSensor;
|
||||||
|
|||||||
@@ -168,18 +168,21 @@ bool HealthTelemetryModule::handleReceivedProtobuf(const meshtastic_MeshPacket &
|
|||||||
|
|
||||||
bool HealthTelemetryModule::getHealthTelemetry(meshtastic_Telemetry *m)
|
bool HealthTelemetryModule::getHealthTelemetry(meshtastic_Telemetry *m)
|
||||||
{
|
{
|
||||||
bool valid = true;
|
bool valid = false;
|
||||||
bool hasSensor = false;
|
bool hasSensor = false;
|
||||||
|
bool get_metrics;
|
||||||
m->time = getTime();
|
m->time = getTime();
|
||||||
m->which_variant = meshtastic_Telemetry_health_metrics_tag;
|
m->which_variant = meshtastic_Telemetry_health_metrics_tag;
|
||||||
m->variant.health_metrics = meshtastic_HealthMetrics_init_zero;
|
m->variant.health_metrics = meshtastic_HealthMetrics_init_zero;
|
||||||
|
|
||||||
if (max30102Sensor.hasSensor()) {
|
if (max30102Sensor.hasSensor()) {
|
||||||
valid = valid && max30102Sensor.getMetrics(m);
|
get_metrics = max30102Sensor.getMetrics(m);
|
||||||
|
valid = valid || get_metrics; // avoid short-circuit evaluation rules
|
||||||
hasSensor = true;
|
hasSensor = true;
|
||||||
}
|
}
|
||||||
if (mlx90614Sensor.hasSensor()) {
|
if (mlx90614Sensor.hasSensor()) {
|
||||||
valid = valid && mlx90614Sensor.getMetrics(m);
|
get_metrics = mlx90614Sensor.getMetrics(m);
|
||||||
|
valid = valid || get_metrics;
|
||||||
hasSensor = true;
|
hasSensor = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -686,6 +686,9 @@ class NimbleBluetoothServerCallback : public NimBLEServerCallbacks
|
|||||||
#ifdef NIMBLE_TWO
|
#ifdef NIMBLE_TWO
|
||||||
if (ble->isDeInit)
|
if (ble->isDeInit)
|
||||||
return;
|
return;
|
||||||
|
#else
|
||||||
|
if (nimbleBluetooth && nimbleBluetooth->isDeInit)
|
||||||
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
meshtastic::BluetoothStatus newStatus(meshtastic::BluetoothStatus::ConnectionState::DISCONNECTED);
|
meshtastic::BluetoothStatus newStatus(meshtastic::BluetoothStatus::ConnectionState::DISCONNECTED);
|
||||||
|
|||||||
37
src/watchdog/watchdogThread.cpp
Normal file
37
src/watchdog/watchdogThread.cpp
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
#include "watchdogThread.h"
|
||||||
|
#include "configuration.h"
|
||||||
|
|
||||||
|
#ifdef HAS_HARDWARE_WATCHDOG
|
||||||
|
WatchdogThread *watchdogThread;
|
||||||
|
|
||||||
|
WatchdogThread::WatchdogThread() : OSThread("Watchdog")
|
||||||
|
{
|
||||||
|
setup();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WatchdogThread::feedDog(void)
|
||||||
|
{
|
||||||
|
digitalWrite(HARDWARE_WATCHDOG_DONE, HIGH);
|
||||||
|
delay(1);
|
||||||
|
digitalWrite(HARDWARE_WATCHDOG_DONE, LOW);
|
||||||
|
}
|
||||||
|
|
||||||
|
int32_t WatchdogThread::runOnce()
|
||||||
|
{
|
||||||
|
LOG_DEBUG("Feeding hardware watchdog");
|
||||||
|
feedDog();
|
||||||
|
return HARDWARE_WATCHDOG_TIMEOUT_MS;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool WatchdogThread::setup()
|
||||||
|
{
|
||||||
|
LOG_DEBUG("init hardware watchdog");
|
||||||
|
pinMode(HARDWARE_WATCHDOG_WAKE, INPUT);
|
||||||
|
pinMode(HARDWARE_WATCHDOG_DONE, OUTPUT);
|
||||||
|
delay(1);
|
||||||
|
digitalWrite(HARDWARE_WATCHDOG_DONE, LOW);
|
||||||
|
delay(1);
|
||||||
|
feedDog();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
17
src/watchdog/watchdogThread.h
Normal file
17
src/watchdog/watchdogThread.h
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "concurrency/OSThread.h"
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifdef HAS_HARDWARE_WATCHDOG
|
||||||
|
class WatchdogThread : private concurrency::OSThread
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
WatchdogThread();
|
||||||
|
void feedDog(void);
|
||||||
|
virtual bool setup();
|
||||||
|
virtual int32_t runOnce() override;
|
||||||
|
};
|
||||||
|
|
||||||
|
extern WatchdogThread *watchdogThread;
|
||||||
|
#endif
|
||||||
@@ -8,6 +8,7 @@ build_flags =
|
|||||||
-I variants/esp32/chatter2
|
-I variants/esp32/chatter2
|
||||||
-DMESHTASTIC_EXCLUDE_WEBSERVER=1
|
-DMESHTASTIC_EXCLUDE_WEBSERVER=1
|
||||||
-DMESHTASTIC_EXCLUDE_PAXCOUNTER=1
|
-DMESHTASTIC_EXCLUDE_PAXCOUNTER=1
|
||||||
|
-ULED_BUILTIN
|
||||||
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${esp32_base.lib_deps}
|
${esp32_base.lib_deps}
|
||||||
|
|||||||
@@ -14,3 +14,4 @@ build_flags =
|
|||||||
${esp32_base.build_flags}
|
${esp32_base.build_flags}
|
||||||
-D DIY_V1
|
-D DIY_V1
|
||||||
-I variants/esp32/diy/hydra
|
-I variants/esp32/diy/hydra
|
||||||
|
-ULED_BUILTIN
|
||||||
|
|||||||
@@ -17,3 +17,4 @@ build_flags =
|
|||||||
-D DIY_V1
|
-D DIY_V1
|
||||||
-D EBYTE_E22
|
-D EBYTE_E22
|
||||||
-I variants/esp32/diy/v1
|
-I variants/esp32/diy/v1
|
||||||
|
-ULED_BUILTIN
|
||||||
|
|||||||
@@ -14,3 +14,4 @@ build_flags =
|
|||||||
${esp32_base.build_flags}
|
${esp32_base.build_flags}
|
||||||
-D NANO_G1_EXPLORER
|
-D NANO_G1_EXPLORER
|
||||||
-I variants/esp32/nano-g1-explorer
|
-I variants/esp32/nano-g1-explorer
|
||||||
|
-ULED_BUILTIN
|
||||||
|
|||||||
@@ -14,3 +14,4 @@ build_flags =
|
|||||||
${esp32_base.build_flags}
|
${esp32_base.build_flags}
|
||||||
-D NANO_G1
|
-D NANO_G1
|
||||||
-I variants/esp32/nano-g1
|
-I variants/esp32/nano-g1
|
||||||
|
-ULED_BUILTIN
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ build_flags =
|
|||||||
-DHAS_STK8XXX=1
|
-DHAS_STK8XXX=1
|
||||||
-O2
|
-O2
|
||||||
-I variants/esp32/radiomaster_900_bandit
|
-I variants/esp32/radiomaster_900_bandit
|
||||||
|
-ULED_BUILTIN
|
||||||
board_build.f_cpu = 240000000L
|
board_build.f_cpu = 240000000L
|
||||||
upload_protocol = esptool
|
upload_protocol = esptool
|
||||||
lib_deps =
|
lib_deps =
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ build_flags =
|
|||||||
-DCONFIG_DISABLE_HAL_LOCKS=1
|
-DCONFIG_DISABLE_HAL_LOCKS=1
|
||||||
-O2
|
-O2
|
||||||
-I variants/esp32/radiomaster_900_bandit_nano
|
-I variants/esp32/radiomaster_900_bandit_nano
|
||||||
|
-ULED_BUILTIN
|
||||||
board_build.f_cpu = 240000000L
|
board_build.f_cpu = 240000000L
|
||||||
upload_protocol = esptool
|
upload_protocol = esptool
|
||||||
|
|||||||
@@ -16,5 +16,6 @@ build_flags =
|
|||||||
-DCONFIG_DISABLE_HAL_LOCKS=1
|
-DCONFIG_DISABLE_HAL_LOCKS=1
|
||||||
-O2
|
-O2
|
||||||
-I variants/esp32/radiomaster_900_bandit_nano
|
-I variants/esp32/radiomaster_900_bandit_nano
|
||||||
|
-ULED_BUILTIN
|
||||||
board_build.f_cpu = 240000000L
|
board_build.f_cpu = 240000000L
|
||||||
upload_protocol = esptool
|
upload_protocol = esptool
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
#define LED_GREEN 12
|
#define LED_GREEN 12
|
||||||
#define LED_BLUE 2
|
#define LED_BLUE 2
|
||||||
|
|
||||||
#define LED_BUILTIN LED_GREEN
|
|
||||||
|
|
||||||
static const uint8_t TX = 1;
|
static const uint8_t TX = 1;
|
||||||
static const uint8_t RX = 3;
|
static const uint8_t RX = 3;
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
#define LED_GREEN 12
|
#define LED_GREEN 12
|
||||||
#define LED_BLUE 2
|
#define LED_BLUE 2
|
||||||
|
|
||||||
#define LED_BUILTIN LED_GREEN
|
|
||||||
|
|
||||||
static const uint8_t TX = 1;
|
static const uint8_t TX = 1;
|
||||||
static const uint8_t RX = 3;
|
static const uint8_t RX = 3;
|
||||||
|
|
||||||
|
|||||||
@@ -14,3 +14,4 @@ build_flags =
|
|||||||
${esp32_base.build_flags}
|
${esp32_base.build_flags}
|
||||||
-D STATION_G1
|
-D STATION_G1
|
||||||
-I variants/esp32/station-g1
|
-I variants/esp32/station-g1
|
||||||
|
-ULED_BUILTIN
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ build_flags = ${esp32_base.build_flags}
|
|||||||
-I variants/esp32/tbeam
|
-I variants/esp32/tbeam
|
||||||
-DBOARD_HAS_PSRAM
|
-DBOARD_HAS_PSRAM
|
||||||
-mfix-esp32-psram-cache-issue
|
-mfix-esp32-psram-cache-issue
|
||||||
|
-ULED_BUILTIN
|
||||||
upload_speed = 921600
|
upload_speed = 921600
|
||||||
|
|
||||||
[env:tbeam-displayshield]
|
[env:tbeam-displayshield]
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ extends = esp32_base
|
|||||||
board = ttgo-lora32-v21
|
board = ttgo-lora32-v21
|
||||||
board_check = true
|
board_check = true
|
||||||
build_flags =
|
build_flags =
|
||||||
${esp32_base.build_flags} -D TLORA_V2_1_16 -I variants/esp32/tlora_v2_1_16
|
${esp32_base.build_flags} -D TLORA_V2_1_16 -I variants/esp32/tlora_v2_1_16 -ULED_BUILTIN
|
||||||
upload_speed = 115200
|
upload_speed = 115200
|
||||||
|
|
||||||
[env:sugarcube]
|
[env:sugarcube]
|
||||||
|
|||||||
@@ -6,4 +6,5 @@ build_flags =
|
|||||||
-D TLORA_V2_1_16
|
-D TLORA_V2_1_16
|
||||||
-I variants/esp32/tlora_v2_1_16
|
-I variants/esp32/tlora_v2_1_16
|
||||||
-D LORA_TCXO_GPIO=12
|
-D LORA_TCXO_GPIO=12
|
||||||
-D BUTTON_PIN=0
|
-D BUTTON_PIN=0
|
||||||
|
-ULED_BUILTIN
|
||||||
@@ -8,3 +8,4 @@ build_flags =
|
|||||||
-I variants/esp32c6/tlora_c6
|
-I variants/esp32c6/tlora_c6
|
||||||
-DARDUINO_USB_CDC_ON_BOOT=1
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
||||||
-DARDUINO_USB_MODE=1
|
-DARDUINO_USB_MODE=1
|
||||||
|
-ULED_BUILTIN
|
||||||
|
|||||||
@@ -6,4 +6,5 @@ board_build.partitions = default_8MB.csv
|
|||||||
build_flags =
|
build_flags =
|
||||||
${esp32s3_base.build_flags} -I variants/esp32s3/heltec_capsule_sensor_v3
|
${esp32s3_base.build_flags} -I variants/esp32s3/heltec_capsule_sensor_v3
|
||||||
-D HELTEC_CAPSULE_SENSOR_V3
|
-D HELTEC_CAPSULE_SENSOR_V3
|
||||||
|
-ULED_BUILTIN
|
||||||
;-D DEBUG_DISABLED ; uncomment this line to disable DEBUG output
|
;-D DEBUG_DISABLED ; uncomment this line to disable DEBUG output
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ build_flags =
|
|||||||
${esp32s3_base.build_flags}
|
${esp32s3_base.build_flags}
|
||||||
-I variants/esp32s3/heltec_sensor_hub
|
-I variants/esp32s3/heltec_sensor_hub
|
||||||
-D HELTEC_SENSOR_HUB
|
-D HELTEC_SENSOR_HUB
|
||||||
|
-ULED_BUILTIN
|
||||||
|
|
||||||
lib_deps = ${esp32s3_base.lib_deps}
|
lib_deps = ${esp32s3_base.lib_deps}
|
||||||
# renovate: datasource=custom.pio depName=NeoPixel packageName=adafruit/library/Adafruit NeoPixel
|
# renovate: datasource=custom.pio depName=NeoPixel packageName=adafruit/library/Adafruit NeoPixel
|
||||||
|
|||||||
@@ -18,3 +18,4 @@ build_flags =
|
|||||||
${esp32s3_base.build_flags}
|
${esp32s3_base.build_flags}
|
||||||
-D HELTEC_V3
|
-D HELTEC_V3
|
||||||
-I variants/esp32s3/heltec_v3
|
-I variants/esp32s3/heltec_v3
|
||||||
|
-ULED_BUILTIN
|
||||||
|
|||||||
@@ -6,10 +6,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 35;
|
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
||||||
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 45; // LED is not populated on earliest board variant
|
|
||||||
#define BUILTIN_LED LED_BUILTIN // Backward compatibility
|
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 45; // LED is not populated on earliest board variant
|
|
||||||
#define BUILTIN_LED LED_BUILTIN // Backward compatibility
|
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 35;
|
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 18;
|
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 18;
|
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
|
||||||
|
|
||||||
static const uint8_t KEY_BUILTIN = 0;
|
static const uint8_t KEY_BUILTIN = 0;
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
|
|||||||
@@ -11,10 +11,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 18;
|
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
|||||||
@@ -11,10 +11,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 18;
|
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
|||||||
@@ -10,10 +10,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 18;
|
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
|||||||
@@ -17,3 +17,4 @@ build_flags =
|
|||||||
${esp32s3_base.build_flags}
|
${esp32s3_base.build_flags}
|
||||||
-D HELTEC_WSL_V3
|
-D HELTEC_WSL_V3
|
||||||
-I variants/esp32s3/heltec_wsl_v3
|
-I variants/esp32s3/heltec_wsl_v3
|
||||||
|
-ULED_BUILTIN
|
||||||
|
|||||||
@@ -10,10 +10,7 @@
|
|||||||
// Some boards have too low voltage on this pin (board design bug)
|
// Some boards have too low voltage on this pin (board design bug)
|
||||||
// Use different pin with 3V and connect with 48
|
// Use different pin with 3V and connect with 48
|
||||||
// and change this setup for the chosen pin (for example 38)
|
// and change this setup for the chosen pin (for example 38)
|
||||||
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + 48;
|
#define RGB_BUILTIN SOC_GPIO_PIN_COUNT + 48
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
|
||||||
#define RGB_BUILTIN LED_BUILTIN
|
|
||||||
#define RGB_BRIGHTNESS 64
|
#define RGB_BRIGHTNESS 64
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
|
|||||||
@@ -49,10 +49,6 @@ static const uint8_t T14 = 14;
|
|||||||
static const uint8_t VBAT_SENSE = 2;
|
static const uint8_t VBAT_SENSE = 2;
|
||||||
static const uint8_t VBUS_SENSE = 34;
|
static const uint8_t VBUS_SENSE = 34;
|
||||||
|
|
||||||
// User LED
|
|
||||||
#define LED_BUILTIN 13
|
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
||||||
|
|
||||||
static const uint8_t RGB_DATA = 40;
|
static const uint8_t RGB_DATA = 40;
|
||||||
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API neopixelWrite()
|
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API neopixelWrite()
|
||||||
#define RGB_BUILTIN (RGB_DATA + SOC_GPIO_PIN_COUNT)
|
#define RGB_BUILTIN (RGB_DATA + SOC_GPIO_PIN_COUNT)
|
||||||
|
|||||||
@@ -24,9 +24,6 @@ static const uint8_t SCK = 13;
|
|||||||
#define SPI_MISO (10)
|
#define SPI_MISO (10)
|
||||||
#define SPI_CS (12)
|
#define SPI_CS (12)
|
||||||
|
|
||||||
// LEDs
|
|
||||||
#define LED_BUILTIN LED_GREEN
|
|
||||||
|
|
||||||
#ifdef _VARIANT_RAK3112_
|
#ifdef _VARIANT_RAK3112_
|
||||||
/*
|
/*
|
||||||
* Serial interfaces
|
* Serial interfaces
|
||||||
|
|||||||
@@ -22,7 +22,4 @@ static const uint8_t SCK = 13;
|
|||||||
#define SPI_MISO (10)
|
#define SPI_MISO (10)
|
||||||
#define SPI_CS (12)
|
#define SPI_CS (12)
|
||||||
|
|
||||||
// LEDs
|
|
||||||
#define LED_BUILTIN LED_GREEN
|
|
||||||
|
|
||||||
#endif /* Pins_Arduino_h */
|
#endif /* Pins_Arduino_h */
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
// static const uint8_t LED_BUILTIN = -1;
|
|
||||||
|
|
||||||
// static const uint8_t TX = 43;
|
// static const uint8_t TX = 43;
|
||||||
// static const uint8_t RX = 44;
|
// static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
// static const uint8_t LED_BUILTIN = -1;
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
// static const uint8_t LED_BUILTIN = -1;
|
|
||||||
|
|
||||||
// static const uint8_t TX = 43;
|
// static const uint8_t TX = 43;
|
||||||
// static const uint8_t RX = 44;
|
// static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ lib_deps = ${esp32s3_base.lib_deps}
|
|||||||
# renovate: datasource=custom.pio depName=SensorLib packageName=lewisxhe/library/SensorLib
|
# renovate: datasource=custom.pio depName=SensorLib packageName=lewisxhe/library/SensorLib
|
||||||
lewisxhe/SensorLib@0.3.4
|
lewisxhe/SensorLib@0.3.4
|
||||||
# renovate: datasource=github-tags depName=pschatzmann_arduino-audio-driver packageName=pschatzmann/arduino-audio-driver
|
# renovate: datasource=github-tags depName=pschatzmann_arduino-audio-driver packageName=pschatzmann/arduino-audio-driver
|
||||||
https://github.com/pschatzmann/arduino-audio-driver/archive/v0.2.0.zip
|
https://github.com/pschatzmann/arduino-audio-driver/archive/v0.2.1.zip
|
||||||
# TODO renovate
|
# TODO renovate
|
||||||
https://github.com/mverch67/BQ27220/archive/07d92be846abd8a0258a50c23198dac0858b22ed.zip
|
https://github.com/mverch67/BQ27220/archive/07d92be846abd8a0258a50c23198dac0858b22ed.zip
|
||||||
# TODO renovate
|
# TODO renovate
|
||||||
|
|||||||
@@ -11,10 +11,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 18;
|
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
|||||||
@@ -11,10 +11,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 18;
|
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
|||||||
@@ -11,10 +11,6 @@
|
|||||||
#define USB_VID 0x303a
|
#define USB_VID 0x303a
|
||||||
#define USB_PID 0x1001
|
#define USB_PID 0x1001
|
||||||
|
|
||||||
static const uint8_t LED_BUILTIN = 18;
|
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
||||||
#define LED_BUILTIN LED_BUILTIN
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,6 @@
|
|||||||
#define USB_VID 0x16D0
|
#define USB_VID 0x16D0
|
||||||
#define USB_PID 0x1178
|
#define USB_PID 0x1178
|
||||||
|
|
||||||
#define LED_BUILTIN 13
|
|
||||||
#define BUILTIN_LED LED_BUILTIN // backward compatibility
|
|
||||||
|
|
||||||
static const uint8_t TX = 43;
|
static const uint8_t TX = 43;
|
||||||
static const uint8_t RX = 44;
|
static const uint8_t RX = 44;
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ extern "C" {
|
|||||||
#define RGBLED_BLUE (0 + 12) // Blue of RGB P0.12
|
#define RGBLED_BLUE (0 + 12) // Blue of RGB P0.12
|
||||||
#define RGBLED_CA // comment out this line if you have a common cathode type, as defined use common anode logic
|
#define RGBLED_CA // comment out this line if you have a common cathode type, as defined use common anode logic
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ extern "C" {
|
|||||||
#define LED_RED PIN_LED3
|
#define LED_RED PIN_LED3
|
||||||
#define LED_BLUE PIN_LED1
|
#define LED_BLUE PIN_LED1
|
||||||
#define LED_GREEN PIN_LED2
|
#define LED_GREEN PIN_LED2
|
||||||
#define LED_BUILTIN LED_BLUE
|
|
||||||
#define LED_CONN PIN_GREEN
|
#define LED_CONN PIN_GREEN
|
||||||
#define LED_STATE_ON 0 // State when LED is lit // LED灯亮时的状态
|
#define LED_STATE_ON 0 // State when LED is lit // LED灯亮时的状态
|
||||||
#define PIN_BUZZER (0 + 6)
|
#define PIN_BUZZER (0 + 6)
|
||||||
|
|||||||
@@ -58,7 +58,6 @@ extern "C" {
|
|||||||
#define LED_BLUE 37
|
#define LED_BLUE 37
|
||||||
#define LED_PAIRING LED_BLUE // Signals the Status LED Module to handle this LED
|
#define LED_PAIRING LED_BLUE // Signals the Status LED Module to handle this LED
|
||||||
|
|
||||||
#define LED_BUILTIN -1
|
|
||||||
#define LED_STATE_ON LOW
|
#define LED_STATE_ON LOW
|
||||||
#define LED_STATE_OFF HIGH
|
#define LED_STATE_OFF HIGH
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ extern "C" {
|
|||||||
#define NUM_ANALOG_OUTPUTS (0)
|
#define NUM_ANALOG_OUTPUTS (0)
|
||||||
|
|
||||||
// LEDs
|
// LEDs
|
||||||
#define LED_BUILTIN -1
|
|
||||||
#define LED_BLUE -1
|
#define LED_BLUE -1
|
||||||
#define PIN_LED2 (32 + 9)
|
#define PIN_LED2 (32 + 9)
|
||||||
#define LED_PAIRING (13)
|
#define LED_PAIRING (13)
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ extern "C" {
|
|||||||
#define NUM_ANALOG_OUTPUTS (0)
|
#define NUM_ANALOG_OUTPUTS (0)
|
||||||
|
|
||||||
// LEDs
|
// LEDs
|
||||||
#define LED_BUILTIN -1
|
|
||||||
#define LED_BLUE -1
|
#define LED_BLUE -1
|
||||||
#define LED_CHARGE (12)
|
#define LED_CHARGE (12)
|
||||||
#define LED_PAIRING (7)
|
#define LED_PAIRING (7)
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (32 + 7) // P1.07 Blue D2
|
#define PIN_LED1 (32 + 7) // P1.07 Blue D2
|
||||||
|
|
||||||
#define LED_PIN PIN_LED1
|
#define LED_PIN PIN_LED1
|
||||||
#define LED_BUILTIN -1
|
|
||||||
|
|
||||||
#define LED_BLUE -1
|
#define LED_BLUE -1
|
||||||
#define LED_STATE_ON 1 // State when LED is lit
|
#define LED_STATE_ON 1 // State when LED is lit
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (32 + 7) // P1.07 Blue D2
|
#define PIN_LED1 (32 + 7) // P1.07 Blue D2
|
||||||
|
|
||||||
#define LED_PIN PIN_LED1
|
#define LED_PIN PIN_LED1
|
||||||
#define LED_BUILTIN -1
|
|
||||||
|
|
||||||
#define LED_BLUE -1
|
#define LED_BLUE -1
|
||||||
#define LED_STATE_ON 1 // State when LED is lit
|
#define LED_STATE_ON 1 // State when LED is lit
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (-1)
|
#define PIN_LED1 (-1)
|
||||||
|
|
||||||
#define LED_PIN PIN_LED1
|
#define LED_PIN PIN_LED1
|
||||||
#define LED_BUILTIN -1
|
|
||||||
|
|
||||||
#define LED_BLUE -1
|
#define LED_BLUE -1
|
||||||
#define LED_STATE_ON 1 // State when LED is lit
|
#define LED_STATE_ON 1 // State when LED is lit
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (32 + 10) // LED P1.15
|
#define PIN_LED1 (32 + 10) // LED P1.15
|
||||||
#define PIN_LED2 (-1) //
|
#define PIN_LED2 (-1) //
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (32 + 10) // LED P1.15
|
#define PIN_LED1 (32 + 10) // LED P1.15
|
||||||
#define PIN_LED2 (-1) //
|
#define PIN_LED2 (-1) //
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ extern "C" {
|
|||||||
// #define PIN_LED1 (32 + 9) Green
|
// #define PIN_LED1 (32 + 9) Green
|
||||||
// #define PIN_LED1 (0 + 12) Blue
|
// #define PIN_LED1 (0 + 12) Blue
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define LED_BLUE PIN_LED1
|
#define LED_BLUE PIN_LED1
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED3
|
#define LED_CONN PIN_LED3
|
||||||
|
|
||||||
#define LED_STATE_ON 0 // State when LED is lit
|
#define LED_STATE_ON 0 // State when LED is lit
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ NRF52 PRO MICRO PIN ASSIGNMENT
|
|||||||
|
|
||||||
// LED
|
// LED
|
||||||
#define PIN_LED1 (0 + 15) // P0.15
|
#define PIN_LED1 (0 + 15) // P0.15
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
// Actually red
|
// Actually red
|
||||||
#define LED_BLUE PIN_LED1
|
#define LED_BLUE PIN_LED1
|
||||||
#define LED_STATE_ON 1 // State when LED is lit
|
#define LED_STATE_ON 1 // State when LED is lit
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ extern "C" {
|
|||||||
#define PIN_LED PIN_LED1
|
#define PIN_LED PIN_LED1
|
||||||
#define LED_PWR (PINS_COUNT)
|
#define LED_PWR (PINS_COUNT)
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED
|
|
||||||
#define LED_STATE_ON 1 // State when LED is lit
|
#define LED_STATE_ON 1 // State when LED is lit
|
||||||
|
|
||||||
// XIAO Wio-SX1262 Shield User button
|
// XIAO Wio-SX1262 Shield User button
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ extern "C" {
|
|||||||
|
|
||||||
// LED
|
// LED
|
||||||
#define PIN_LED1 (0 + 15)
|
#define PIN_LED1 (0 + 15)
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
// Actually red
|
// Actually red
|
||||||
#define LED_BLUE PIN_LED1
|
#define LED_BLUE PIN_LED1
|
||||||
#define LED_STATE_ON 1
|
#define LED_STATE_ON 1
|
||||||
|
|||||||
@@ -49,8 +49,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (32 + 15) // P1.15 3
|
#define PIN_LED1 (32 + 15) // P1.15 3
|
||||||
#define PIN_LED2 (32 + 10) // P1.10 4
|
#define PIN_LED2 (32 + 10) // P1.10 4
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED2 // Actually red
|
#define LED_GREEN PIN_LED2 // Actually red
|
||||||
#define LED_BLUE PIN_LED1
|
#define LED_BLUE PIN_LED1
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (35)
|
#define PIN_LED1 (35)
|
||||||
#define PIN_LED2 (36)
|
#define PIN_LED2 (36)
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (32 + 3) // green (confirmed on 1.0 board)
|
#define PIN_LED1 (32 + 3) // 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
|
||||||
#define LED_BUILTIN LED_GREEN
|
|
||||||
#define LED_STATE_ON 0 // State when LED is lit
|
#define LED_STATE_ON 0 // State when LED is lit
|
||||||
|
|
||||||
#define HAS_NEOPIXEL // Enable the use of neopixels
|
#define HAS_NEOPIXEL // Enable the use of neopixels
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (32 + 3) // green (confirmed on 1.0 board)
|
#define PIN_LED1 (32 + 3) // 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
|
||||||
#define LED_BUILTIN LED_GREEN
|
|
||||||
#define LED_STATE_ON 0 // State when LED is lit
|
#define LED_STATE_ON 0 // State when LED is lit
|
||||||
|
|
||||||
#define HAS_NEOPIXEL // Enable the use of neopixels
|
#define HAS_NEOPIXEL // Enable the use of neopixels
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ extern "C" {
|
|||||||
#define LED_RED PIN_LED1
|
#define LED_RED PIN_LED1
|
||||||
#define LED_BLUE PIN_LED1
|
#define LED_BLUE PIN_LED1
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
#define LED_BUILTIN LED_BLUE
|
|
||||||
#define LED_CONN LED_BLUE
|
#define LED_CONN LED_BLUE
|
||||||
#define LED_STATE_ON 0 // State when LED is lit
|
#define LED_STATE_ON 0 // State when LED is lit
|
||||||
|
|
||||||
|
|||||||
@@ -39,16 +39,15 @@ 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 + 4) // green (confirmed on 1.0 board)
|
#define PIN_LED1 (32 + 15) // 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
|
||||||
#define LED_BUILTIN LED_GREEN
|
|
||||||
#define LED_STATE_ON 0 // State when LED is lit
|
#define LED_STATE_ON 0 // State when LED is lit
|
||||||
|
|
||||||
#define HAS_NEOPIXEL // Enable the use of neopixels
|
// #define HAS_NEOPIXEL // Enable the use of neopixels
|
||||||
#define NEOPIXEL_COUNT 1 // How many neopixels are connected
|
// #define NEOPIXEL_COUNT 1 // How many neopixels are connected
|
||||||
#define NEOPIXEL_DATA (32 + 15) // gpio pin used to send data to the neopixels
|
// #define NEOPIXEL_DATA (32 + 15) // gpio pin used to send data to the neopixels
|
||||||
#define NEOPIXEL_TYPE (NEO_GRB + NEO_KHZ800) // type of neopixels in use
|
// #define NEOPIXEL_TYPE (NEO_GRB + NEO_KHZ800) // type of neopixels in use
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Buttons
|
* Buttons
|
||||||
@@ -60,8 +59,8 @@ extern "C" {
|
|||||||
/*
|
/*
|
||||||
No longer populated on PCB
|
No longer populated on PCB
|
||||||
*/
|
*/
|
||||||
#define PIN_SERIAL2_RX (0 + 9)
|
#define PIN_SERIAL2_RX (-1)
|
||||||
#define PIN_SERIAL2_TX (0 + 10)
|
#define PIN_SERIAL2_TX (-1)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* I2C
|
* I2C
|
||||||
@@ -138,6 +137,12 @@ No longer populated on PCB
|
|||||||
// To debug via the segger JLINK console rather than the CDC-ACM serial device
|
// To debug via the segger JLINK console rather than the CDC-ACM serial device
|
||||||
// #define USE_SEGGER
|
// #define USE_SEGGER
|
||||||
|
|
||||||
|
// Hardware watchdog
|
||||||
|
#define HAS_HARDWARE_WATCHDOG
|
||||||
|
#define HARDWARE_WATCHDOG_DONE (0 + 9)
|
||||||
|
#define HARDWARE_WATCHDOG_WAKE (0 + 10)
|
||||||
|
#define HARDWARE_WATCHDOG_TIMEOUT_MS (6 * 60 * 1000) // 6 minute watchdog
|
||||||
|
|
||||||
#define BQ4050_SDA_PIN (32 + 1) // I2C data line pin
|
#define BQ4050_SDA_PIN (32 + 1) // I2C data line pin
|
||||||
#define BQ4050_SCL_PIN (32 + 0) // I2C clock line pin
|
#define BQ4050_SCL_PIN (32 + 0) // I2C clock line pin
|
||||||
#define BQ4050_EMERGENCY_SHUTDOWN_PIN (32 + 3) // Emergency shutdown pin
|
#define BQ4050_EMERGENCY_SHUTDOWN_PIN (32 + 3) // Emergency shutdown pin
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ extern "C" {
|
|||||||
// LEDs
|
// LEDs
|
||||||
#define PIN_LED1 (24) // Built in white led for status
|
#define PIN_LED1 (24) // Built in white led for status
|
||||||
#define LED_BLUE PIN_LED1
|
#define LED_BLUE PIN_LED1
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
|
|
||||||
#define LED_STATE_ON 0 // State when LED is litted
|
#define LED_STATE_ON 0 // State when LED is litted
|
||||||
#define LED_INVERTED 1
|
#define LED_INVERTED 1
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (35)
|
#define PIN_LED1 (35)
|
||||||
#define PIN_LED2 (36)
|
#define PIN_LED2 (36)
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (35)
|
#define PIN_LED1 (35)
|
||||||
#define PIN_LED2 (36) // Connected to WWAN host LED (if present)
|
#define PIN_LED2 (36) // Connected to WWAN host LED (if present)
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (32 + 3) // P1.03, Green
|
#define PIN_LED1 (32 + 3) // P1.03, Green
|
||||||
#define PIN_LED2 (32 + 4) // P1.04, Blue
|
#define PIN_LED2 (32 + 4) // P1.04, Blue
|
||||||
|
|
||||||
#define LED_BUILTIN -1 // PIN_LED1
|
|
||||||
#define LED_BLUE PIN_LED2
|
#define LED_BLUE PIN_LED2
|
||||||
#define LED_STATE_ON 0 // State when LED is lit
|
#define LED_STATE_ON 0 // State when LED is lit
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ extern "C" {
|
|||||||
#define LED_BLUE PIN_LED1
|
#define LED_BLUE PIN_LED1
|
||||||
#define LED_GREEN PIN_LED2
|
#define LED_GREEN PIN_LED2
|
||||||
|
|
||||||
#define LED_BUILTIN LED_BLUE
|
|
||||||
#define LED_CONN PIN_GREEN
|
#define LED_CONN PIN_GREEN
|
||||||
|
|
||||||
#define LED_STATE_ON 0 // State when LED is lit
|
#define LED_STATE_ON 0 // State when LED is lit
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (32 + 4) // P1.04 Controls Green LED
|
#define PIN_LED1 (32 + 4) // P1.04 Controls Green LED
|
||||||
#define PIN_LED2 (28) // P0.28 Controls Blue LED
|
#define PIN_LED2 (28) // P0.28 Controls Blue LED
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (35)
|
#define PIN_LED1 (35)
|
||||||
#define PIN_LED2 (36)
|
#define PIN_LED2 (36)
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (35)
|
#define PIN_LED1 (35)
|
||||||
#define PIN_LED2 (36)
|
#define PIN_LED2 (36)
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (35)
|
#define PIN_LED1 (35)
|
||||||
#define PIN_LED2 (36)
|
#define PIN_LED2 (36)
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
@@ -253,9 +252,13 @@ SO GPIO 39/TXEN MAY NOT BE DEFINED FOR SUCCESSFUL OPERATION OF THE SX1262 - TG
|
|||||||
#define RV3028_RTC (uint8_t)0b1010010
|
#define RV3028_RTC (uint8_t)0b1010010
|
||||||
|
|
||||||
// RAK18001 Buzzer in Slot C
|
// RAK18001 Buzzer in Slot C
|
||||||
// #define PIN_BUZZER 21 // IO3 is PWM2
|
#define PIN_BUZZER 21 // IO3 is PWM2
|
||||||
// NEW: set this via protobuf instead!
|
// NEW: set this via protobuf instead!
|
||||||
|
|
||||||
|
// RAK4631 custom ringtone
|
||||||
|
#undef USERPREFS_RINGTONE_RTTTL
|
||||||
|
#define USERPREFS_RINGTONE_RTTTL "Rak:d=32,o=5,b=200:b7,p,b7,4p,p"
|
||||||
|
|
||||||
// Battery
|
// Battery
|
||||||
// The battery sense is hooked to pin A0 (5)
|
// The battery sense is hooked to pin A0 (5)
|
||||||
#define BATTERY_PIN PIN_A0
|
#define BATTERY_PIN PIN_A0
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (35)
|
#define PIN_LED1 (35)
|
||||||
#define PIN_LED2 (36)
|
#define PIN_LED2 (36)
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (35)
|
#define PIN_LED1 (35)
|
||||||
#define PIN_LED2 (36)
|
#define PIN_LED2 (36)
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (35)
|
#define PIN_LED1 (35)
|
||||||
#define PIN_LED2 (36)
|
#define PIN_LED2 (36)
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (35)
|
#define PIN_LED1 (35)
|
||||||
#define PIN_LED2 (36)
|
#define PIN_LED2 (36)
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (35)
|
#define PIN_LED1 (35)
|
||||||
#define PIN_LED2 (36)
|
#define PIN_LED2 (36)
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (35)
|
#define PIN_LED1 (35)
|
||||||
#define PIN_LED2 (36)
|
#define PIN_LED2 (36)
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
#define PIN_LED1 (12) // LED P1.15
|
#define PIN_LED1 (12) // LED P1.15
|
||||||
#define PIN_LED2 (11) //
|
#define PIN_LED2 (11) //
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
#define PIN_LED1 (11) // LED P1.15
|
#define PIN_LED1 (11) // LED P1.15
|
||||||
#define PIN_LED2 (12) //
|
#define PIN_LED2 (12) //
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
#define PIN_LED1 (11) // LED P1.15
|
#define PIN_LED1 (11) // LED P1.15
|
||||||
#define PIN_LED2 (12) //
|
#define PIN_LED2 (12) //
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
#define LED_CONN PIN_LED2
|
#define LED_CONN PIN_LED2
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
|
|||||||
@@ -69,8 +69,6 @@ static const uint8_t A5 = PIN_A5;
|
|||||||
#define PIN_LED2 LED_BLUE
|
#define PIN_LED2 LED_BLUE
|
||||||
#define PIN_LED3 LED_RED
|
#define PIN_LED3 LED_RED
|
||||||
|
|
||||||
#define LED_BUILTIN LED_RED // LED_BUILTIN is used by framework-arduinoadafruitnrf52 to indicate flash writes
|
|
||||||
|
|
||||||
#define LED_PWR LED_RED
|
#define LED_PWR LED_RED
|
||||||
#define USER_LED LED_BLUE
|
#define USER_LED LED_BLUE
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define BLE_LED LED_BLUE
|
#define BLE_LED LED_BLUE
|
||||||
#define BLE_LED_INVERTED 1
|
#define BLE_LED_INVERTED 1
|
||||||
#define LED_BUILTIN LED_GREEN
|
|
||||||
#define LED_CONN LED_GREEN
|
#define LED_CONN LED_GREEN
|
||||||
#define LED_STATE_ON 0 // State when LED is lit
|
#define LED_STATE_ON 0 // State when LED is lit
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ extern "C" {
|
|||||||
#define LED_BLUE PIN_LED1
|
#define LED_BLUE PIN_LED1
|
||||||
#define LED_GREEN PIN_LED2
|
#define LED_GREEN PIN_LED2
|
||||||
|
|
||||||
#define LED_BUILTIN LED_BLUE
|
|
||||||
#define LED_CONN LED_GREEN
|
#define LED_CONN LED_GREEN
|
||||||
|
|
||||||
#define LED_STATE_ON 0
|
#define LED_STATE_ON 0
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ extern "C" {
|
|||||||
#define LED_BLUE PIN_LED1
|
#define LED_BLUE PIN_LED1
|
||||||
#define LED_GREEN PIN_LED2
|
#define LED_GREEN PIN_LED2
|
||||||
|
|
||||||
#define LED_BUILTIN LED_BLUE
|
|
||||||
#define LED_CONN PIN_GREEN
|
#define LED_CONN PIN_GREEN
|
||||||
|
|
||||||
#define LED_STATE_ON 0 // State when LED is lit
|
#define LED_STATE_ON 0 // State when LED is lit
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define PIN_LED1 (0 + 24) // P0.24
|
#define PIN_LED1 (0 + 24) // P0.24
|
||||||
#define LED_PIN PIN_LED1
|
#define LED_PIN PIN_LED1
|
||||||
#define LED_BUILTIN -1
|
|
||||||
#define LED_BLUE -1 // Actually green
|
#define LED_BLUE -1 // Actually green
|
||||||
#define LED_STATE_ON 1 // State when LED is lit
|
#define LED_STATE_ON 1 // State when LED is lit
|
||||||
|
|
||||||
|
|||||||
@@ -58,8 +58,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (0 + 13) // P0.13
|
#define PIN_LED1 (0 + 13) // P0.13
|
||||||
#define PIN_LED2 (0 + 14) // P0.14
|
#define PIN_LED2 (0 + 14) // P0.14
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
#define LED_BLUE PIN_LED2 // Actually red
|
#define LED_BLUE PIN_LED2 // Actually red
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define PIN_LED1 (0 + 24) // P0.24
|
#define PIN_LED1 (0 + 24) // P0.24
|
||||||
#define LED_PIN PIN_LED1
|
#define LED_PIN PIN_LED1
|
||||||
#define LED_BUILTIN -1
|
|
||||||
#define LED_BLUE -1 // Actually green
|
#define LED_BLUE -1 // Actually green
|
||||||
#define LED_STATE_ON 1 // State when LED is lit
|
#define LED_STATE_ON 1 // State when LED is lit
|
||||||
|
|
||||||
|
|||||||
@@ -54,8 +54,6 @@ extern "C" {
|
|||||||
#define PIN_LED1 (0 + 6) // P0.06
|
#define PIN_LED1 (0 + 6) // P0.06
|
||||||
#define PIN_LED2 (PINS_COUNT) // P0.14
|
#define PIN_LED2 (PINS_COUNT) // P0.14
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED1
|
|
||||||
|
|
||||||
#define LED_GREEN PIN_LED1
|
#define LED_GREEN PIN_LED1
|
||||||
#define LED_BLUE PIN_LED2
|
#define LED_BLUE PIN_LED2
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,6 @@
|
|||||||
#define SPI_HOWMANY (2u)
|
#define SPI_HOWMANY (2u)
|
||||||
#define WIRE_HOWMANY (1u)
|
#define WIRE_HOWMANY (1u)
|
||||||
|
|
||||||
#define LED_BUILTIN PIN_LED
|
|
||||||
|
|
||||||
static const uint8_t D0 = (16u);
|
static const uint8_t D0 = (16u);
|
||||||
static const uint8_t D1 = (17u);
|
static const uint8_t D1 = (17u);
|
||||||
static const uint8_t D2 = (20u);
|
static const uint8_t D2 = (20u);
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ static const uint8_t A3 = PIN_A3;
|
|||||||
#define PIN_LED (23u)
|
#define PIN_LED (23u)
|
||||||
#define PIN_LED1 PIN_LED
|
#define PIN_LED1 PIN_LED
|
||||||
#define PIN_LED2 (24u)
|
#define PIN_LED2 (24u)
|
||||||
#define LED_BUILTIN PIN_LED
|
|
||||||
|
|
||||||
#define ADC_RESOLUTION 12
|
#define ADC_RESOLUTION 12
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user