mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
match changes to other nrf52 boards, add pin definitions to platformio.ini
This commit is contained in:
parent
f671b753da
commit
6a78cfd00d
2 changed files with 6 additions and 3 deletions
|
|
@ -1048,6 +1048,9 @@ build_flags = ${nrf52840_base.build_flags}
|
|||
-D SX126X_CURRENT_LIMIT=130
|
||||
-D SX126X_RX_BOOSTED_GAIN=1
|
||||
-D DISPLAY_CLASS=SSD1306Display
|
||||
-D PIN_BOARD_SCL=7
|
||||
-D PIN_BOARD_SDA=8
|
||||
-D PIN_OLED_RESET=-1
|
||||
-D PIN_USER_BTN=6
|
||||
lib_deps=
|
||||
${nrf52840_base.lib_deps}
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@ void faketecBoard::begin() {
|
|||
#endif
|
||||
|
||||
#if defined(PIN_BOARD_SDA) && defined(PIN_BOARD_SCL)
|
||||
Wire.begin(PIN_BOARD_SDA, PIN_BOARD_SCL);
|
||||
#else
|
||||
Wire.begin();
|
||||
Wire.setPins(PIN_BOARD_SDA, PIN_BOARD_SCL);
|
||||
#endif
|
||||
|
||||
Wire.begin();
|
||||
|
||||
pinMode(SX126X_POWER_EN, OUTPUT);
|
||||
digitalWrite(SX126X_POWER_EN, HIGH);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue