mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-27 06:54:37 +00:00
Reassign GPS pins to match recommended optional GPS module instructions
This commit is contained in:
parent
fb4e15a074
commit
6c26764300
@ -30,9 +30,11 @@ const uint32_t g_ADigitalPinMap[] = {
|
||||
// P1
|
||||
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47};
|
||||
|
||||
#ifdef PIN_3V3_EN
|
||||
void initVariant()
|
||||
{
|
||||
// 3V3 Power Rail
|
||||
pinMode(PIN_3V3_EN, OUTPUT);
|
||||
digitalWrite(PIN_3V3_EN, HIGH);
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -70,9 +70,9 @@ E22/NRF52 PRO MICRO PIN ASSIGNMENT
|
||||
| P1.06 | SCL | | P0.09 | NSS |
|
||||
| | | | | |
|
||||
| | Mid board | | | Internal |
|
||||
| P1.01 | GPS_TX | | 0.15 | LED |
|
||||
| P1.01 | Free pin | | 0.15 | LED |
|
||||
| P1.02 | GPS_RX | | 0.13 | 3V3_EN |
|
||||
| P1.07 | GPS_EN | | | |
|
||||
| P1.07 | GPS_TX | | | |
|
||||
*/
|
||||
|
||||
// Number of pins defined in PinDescription array
|
||||
@ -82,7 +82,7 @@ E22/NRF52 PRO MICRO PIN ASSIGNMENT
|
||||
#define NUM_ANALOG_OUTPUTS (0)
|
||||
|
||||
// Pin 13 enables 3.3V periphery.
|
||||
#define PIN_3V3_EN (0 + 13) // P0.13
|
||||
// #define PIN_3V3_EN (0 + 13) // P0.13
|
||||
|
||||
// Battery
|
||||
#define BATTERY_PIN (0 + 31) // P0.31
|
||||
@ -121,10 +121,10 @@ E22/NRF52 PRO MICRO PIN ASSIGNMENT
|
||||
#define BUTTON_PIN (-1) // no button
|
||||
|
||||
// GPS
|
||||
#define PIN_GPS_TX (32 + 1) // P1.01
|
||||
#define PIN_GPS_TX (32 + 7) // P1.07
|
||||
#define PIN_GPS_RX (32 + 2) // P1.02
|
||||
|
||||
#define PIN_GPS_EN (32 + 7) // P1.07
|
||||
#define PIN_GPS_EN (0 + 13) // P0.13 3.3V enable
|
||||
#define GPS_POWER_TOGGLE
|
||||
#define GPS_UBLOX
|
||||
// define GPS_DEBUG
|
||||
|
||||
Loading…
Reference in New Issue
Block a user