sforkowany z mirror/meshtastic-firmware
changes from bringing up PPR
rodzic
96594516af
commit
4b5cfaf9ba
4
gdbinit
4
gdbinit
|
@ -6,8 +6,8 @@
|
||||||
# mon exec SetMonModeDebug=1
|
# mon exec SetMonModeDebug=1
|
||||||
# mon exec SetMonModeVTableAddr=0x26000
|
# mon exec SetMonModeVTableAddr=0x26000
|
||||||
|
|
||||||
echo setting RTTAddr
|
# echo setting RTTAddr
|
||||||
eval "monitor exec SetRTTAddr %p", &_SEGGER_RTT
|
# eval "monitor exec SetRTTAddr %p", &_SEGGER_RTT
|
||||||
|
|
||||||
# the jlink debugger seems to want a pause after reset before we tell it to start running
|
# the jlink debugger seems to want a pause after reset before we tell it to start running
|
||||||
define restart
|
define restart
|
||||||
|
|
|
@ -33,4 +33,18 @@ class UC1701Spi : public OLEDDisplay
|
||||||
void display(void) {}
|
void display(void) {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#include "variant.h"
|
||||||
|
#include <UC1701.h>
|
||||||
|
static UC1701 lcd(PIN_SPI_SCK, PIN_SPI_MOSI, ERC12864_CS, ERC12864_CD);
|
||||||
|
|
||||||
|
|
||||||
|
void testLCD() {
|
||||||
|
// PCD8544-compatible displays may have a different resolution...
|
||||||
|
lcd.begin();
|
||||||
|
|
||||||
|
// Write a piece of text on the first line...
|
||||||
|
lcd.setCursor(0, 0);
|
||||||
|
lcd.print("Hello, World!");
|
||||||
|
}
|
|
@ -132,7 +132,7 @@ static const uint8_t SCK = PIN_SPI_SCK;
|
||||||
#define SX1262_CS (10)
|
#define SX1262_CS (10)
|
||||||
#define SX1262_DIO1 (20)
|
#define SX1262_DIO1 (20)
|
||||||
#define SX1262_DIO2 (26)
|
#define SX1262_DIO2 (26)
|
||||||
#define SX1262_BUSY (18)
|
#define SX1262_BUSY (31) // Supposed to be P0.18 but because of reworks, now on P0.31 (18)
|
||||||
#define SX1262_RESET (17)
|
#define SX1262_RESET (17)
|
||||||
// #define SX1262_ANT_SW (32 + 10)
|
// #define SX1262_ANT_SW (32 + 10)
|
||||||
#define SX1262_RXEN (22)
|
#define SX1262_RXEN (22)
|
||||||
|
|
Ładowanie…
Reference in New Issue