Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions variants/rp2040/ec_catwan_usb_stick/platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[env:ec_catwan_usb_stick]
extends = rp2040_base
board = rpipico
board_level = extra
upload_protocol = picotool
build_flags =
${rp2040_base.build_flags}
-D RPI_PICO
-I variants/rp2040/ec_catwan_usb_stick
-D DEBUG_RP2040_PORT=Serial
debug_build_flags = ${rp2040_base.build_flags}, -g
Comment thread
wero1414 marked this conversation as resolved.
Outdated
debug_tool = cmsis-dap
33 changes: 33 additions & 0 deletions variants/rp2040/ec_catwan_usb_stick/variant.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// CatWAN USB Stick - Electronic Cats
// RP2040 + RFM95W (SX1276)
//
// Pin mapping:
// SPI0: MISO=GPIO16, CS=GPIO17, SCK=GPIO18, MOSI=GPIO19
// Radio: RST=GPIO21, DIO0=GPIO10, DIO1=GPIO11, DIO2=GPIO12
// LED: GPIO25

#define ARDUINO_ARCH_AVR

Comment thread
wero1414 marked this conversation as resolved.
Outdated
#define HAS_SCREEN 0
#define HAS_GPS 0
#undef GPS_RX_PIN
#undef GPS_TX_PIN

#define LED_PIN 25

#define USE_RF95 // RFM95W / SX1276

#undef LORA_SCK
#undef LORA_MISO
#undef LORA_MOSI
#undef LORA_CS

#define LORA_SCK 18
#define LORA_MISO 16
#define LORA_MOSI 19
#define LORA_CS 17

#define LORA_RESET 21
#define LORA_DIO0 10
#define LORA_DIO1 11
#define LORA_DIO2 12
Loading