forked from meshtastic/firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makersense RP2040 support (meshtastic#2996)
* WIP * Do the right things * Add to build matrix * Yaml lint has annoyed me for the final time
- Loading branch information
1 parent
17f1a45
commit 9188a9a
Showing
6 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,6 @@ lint: | |
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[env:senselora_rp2040] | ||
extends = rp2040_base | ||
board = rpipico | ||
upload_protocol = picotool | ||
|
||
# add our variants files to the include and src paths | ||
build_flags = ${rp2040_base.build_flags} | ||
-DSENSELORA_RP2040 | ||
-Ivariants/rpipico | ||
-DDEBUG_RP2040_PORT=Serial | ||
-DHW_SPI1_DEVICE | ||
-L "${platformio.libdeps_dir}/${this.__env__}/BSEC2 Software Library/src/cortex-m0plus" | ||
lib_deps = | ||
${rp2040_base.lib_deps} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// #define RADIOLIB_CUSTOM_ARDUINO 1 | ||
// #define RADIOLIB_TONE_UNSUPPORTED 1 | ||
// #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 1 | ||
|
||
#define ARDUINO_ARCH_AVR | ||
|
||
#define USE_SSD1306 1 | ||
|
||
#define BUTTON_PIN 2 | ||
|
||
#define I2C_SDA1 6 | ||
#define I2C_SCL1 7 | ||
|
||
#define PIN_SPI_MISO (16u) | ||
#define PIN_SPI_MOSI (19u) | ||
#define PIN_SPI_SCK (18u) | ||
#define PIN_SPI_SS (17u) | ||
|
||
#define LED_PIN PIN_LED | ||
|
||
#undef BATTERY_PIN | ||
|
||
#undef LORA_SCK | ||
#undef LORA_MISO | ||
#undef LORA_MOSI | ||
#undef LORA_CS | ||
|
||
#define USE_RF95 | ||
#define LORA_SCK PIN_SPI_SCK | ||
#define LORA_MISO PIN_SPI_MISO | ||
#define LORA_MOSI PIN_SPI_MOSI | ||
#define LORA_CS PIN_SPI_SS | ||
|
||
#define LORA_DIO0 21 | ||
#define LORA_DIO1 22 | ||
#define LORA_DIO2 23 | ||
#define LORA_DIO5 24 | ||
#define LORA_RST 20 |