Compare commits

...

13 Commits

Author SHA1 Message Date
dokuhn
f6a2a835d7
Merge 47e4a2cfe2 into aa3b14ce72 2025-07-27 22:14:22 -05:00
dokuhn
47e4a2cfe2 setting the board_level to extra 2025-07-27 11:26:38 +02:00
dokuhn
4110b71f85 moved variant to rp2040 2025-07-27 11:25:14 +02:00
Austin
8b6032ef35
Merge branch 'master' into master 2025-07-21 20:44:25 -04:00
GUVWAF
5b376e54f0
Merge branch 'master' into master 2025-07-15 19:38:48 +02:00
dokuhn
bb5f562d4a
USE_RF95 is already defined in the variant.h. 2025-07-15 09:50:09 +02:00
Thomas Göttgens
a6830d3b58 trunk fmt 2025-07-14 15:56:11 +02:00
dokuhn
1e40cac13e
delete old lib dependencies in platformio.ini 2025-07-04 07:39:38 +02:00
dokuhn
c6a85fd993
Update platformio.ini 2025-07-03 18:14:40 +02:00
Ben Meadors
32cf35c340
Merge branch 'master' into master 2025-07-03 09:34:08 -05:00
dokuhn
73da501193
Merge branch 'master' into master 2025-07-03 13:24:54 +02:00
Dominik Kuhn
ed00c55048 Merge branch 'master' of github.com:dokuhn/meshtastic-firmware 2025-06-01 10:44:35 +02:00
d0kuhn
cc274b1a57 adding rp2040-minipill-lora variant 2025-06-01 10:34:38 +02:00
3 changed files with 91 additions and 0 deletions

View File

@ -0,0 +1,50 @@
#pragma once
#define PIN_A0 (26u)
#define PIN_A1 (27u)
#define PIN_A2 (28u)
#define PIN_A3 (29u)
static const uint8_t A0 = PIN_A0;
static const uint8_t A1 = PIN_A1;
static const uint8_t A2 = PIN_A2;
static const uint8_t A3 = PIN_A3;
// LEDs
#define PIN_LED (23u)
#define PIN_LED1 PIN_LED
#define LED_BUILTIN PIN_LED
#define ADC_RESOLUTION 12
// Serial
#define PIN_SERIAL1_TX (16ul)
#define PIN_SERIAL1_RX (17ul)
#define PIN_SERIAL2_TX (8ul)
#define PIN_SERIAL2_RX (9ul)
// SPI
#define PIN_SPI0_MISO (4u)
#define PIN_SPI0_MOSI (3u)
#define PIN_SPI0_SCK (2u)
#define PIN_SPI0_SS (5u)
// Wire
#define PIN_WIRE0_SDA (20u)
#define PIN_WIRE0_SCL (21u)
#define PIN_WIRE1_SDA (-1)
#define PIN_WIRE1_SCL (-1)
#define SERIAL_HOWMANY (3u)
#define SPI_HOWMANY (2u)
#define WIRE_HOWMANY (1u)
static const uint8_t SS = PIN_SPI0_SS;
static const uint8_t MOSI = PIN_SPI0_MOSI;
static const uint8_t MISO = PIN_SPI0_MISO;
static const uint8_t SCK = PIN_SPI0_SCK;
static const uint8_t SDA = PIN_WIRE0_SDA;
static const uint8_t SCL = PIN_WIRE0_SCL;

View File

@ -0,0 +1,15 @@
[env:rp2040-minipill-lora]
extends = rp2040_base
board = rpipico
board_level = extra
upload_protocol = picotool
# add our variants files to the include and src paths
build_flags = ${rp2040_base.build_flags}
-DRPI_PICO
-Ivariants/rp2040/rp2040-minipill-lora
-DDEBUG_RP2040_PORT=Serial
lib_deps =
${rp2040_base.lib_deps}
debug_build_flags = ${rp2040_base.build_flags}, -g
debug_tool = cmsis-dap ; for e.g. Picotool

View File

@ -0,0 +1,26 @@
#define ARDUINO_ARCH_AVR
#define HAS_SCREEN 0
#undef BATTERY_PIN
#define BATTERY_SENSE_RESOLUTION_BITS ADC_RESOLUTION
#undef LORA_SCK
#undef LORA_MISO
#undef LORA_MOSI
#undef LORA_CS
#define USE_RF95 // RFM95/SX127x
#define RF95_MAX_POWER 10
#define RF95_PA_EN 1
#define LORA_SCK PIN_SPI0_SCK
#define LORA_MISO PIN_SPI0_MISO
#define LORA_MOSI PIN_SPI0_MOSI
#define LORA_CS PIN_SPI0_SS
#define LORA_DIO0 1
#define LORA_DIO1 RADIOLIB_NC
#define LORA_DIO2 RADIOLIB_NC
#define LORA_RESET RADIOLIB_NC
#define ledOff(pin) pinMode(pin, INPUT)