Actually, use SPIM3 for SX1262 on T-Echo
parent
3379217e19
commit
48bce4ea15
|
@ -75,7 +75,7 @@
|
|||
#define SCL_OLED 17
|
||||
#define SDA_OLED 18
|
||||
#elif BOARD_MODEL == BOARD_TECHO
|
||||
SPIClass displaySPI = SPIClass(NRF_SPIM3, pin_disp_miso, pin_disp_sck, pin_disp_mosi);
|
||||
SPIClass displaySPI = SPIClass(NRF_SPIM0, pin_disp_miso, pin_disp_sck, pin_disp_mosi);
|
||||
#define DISP_W 128
|
||||
#define DISP_H 64
|
||||
#define DISP_ADDR -1
|
||||
|
|
|
@ -88,8 +88,8 @@
|
|||
#define FREQ_STEP_6X (double)(XTAL_FREQ_6X / FREQ_DIV_6X)
|
||||
|
||||
#if BOARD_MODEL == BOARD_TECHO
|
||||
SPIClass spim0 = SPIClass(NRF_SPIM0, pin_miso, pin_sclk, pin_mosi) ;
|
||||
#define SPI spim0
|
||||
SPIClass spim3 = SPIClass(NRF_SPIM3, pin_miso, pin_sclk, pin_mosi) ;
|
||||
#define SPI spim3
|
||||
|
||||
#elif defined(NRF52840_XXAA)
|
||||
extern SPIClass spiModem;
|
||||
|
|
Loading…
Reference in New Issue