mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-03 18:23:48 +00:00
make SPI1 use more generic
This commit is contained in:
parent
83fc3647b1
commit
3d26a243f1
@ -137,7 +137,7 @@ void setupNicheGraphics();
|
|||||||
#include "nicheGraphics.h"
|
#include "nicheGraphics.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HW_SPI1_DEVICE) && defined(ELECROW)
|
#if defined(HW_SPI1_DEVICE) && defined(ARCH_ESP32)
|
||||||
SPIClass SPI1(HSPI);
|
SPIClass SPI1(HSPI);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -794,7 +794,7 @@ void setup()
|
|||||||
SPI.begin();
|
SPI.begin();
|
||||||
#else
|
#else
|
||||||
// ESP32
|
// ESP32
|
||||||
#if defined(HW_SPI1_DEVICE) && defined(ELECROW)
|
#if defined(HW_SPI1_DEVICE)
|
||||||
SPI1.begin(LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS);
|
SPI1.begin(LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS);
|
||||||
LOG_DEBUG("SPI1.begin(SCK=%d, MISO=%d, MOSI=%d, NSS=%d)", LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS);
|
LOG_DEBUG("SPI1.begin(SCK=%d, MISO=%d, MOSI=%d, NSS=%d)", LORA_SCK, LORA_MISO, LORA_MOSI, LORA_CS);
|
||||||
SPI1.setFrequency(4000000);
|
SPI1.setFrequency(4000000);
|
||||||
|
Loading…
Reference in New Issue
Block a user