Skip to content

Commit

Permalink
Actually, use SPIM3 for SX1262 on T-Echo
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Jan 16, 2025
1 parent 3379217 commit 48bce4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Display.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions sx126x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 48bce4e

Please sign in to comment.