ppr1 WIP DO NOT MERGE - will break other clients

pull/503/head
Kevin Hester 2020-10-17 13:15:12 +08:00
rodzic c73ee98739
commit e1f0e11cb8
5 zmienionych plików z 21 dodań i 6 usunięć

Wyświetl plik

@ -27,6 +27,12 @@ GPS *gps;
bool GPS::setup()
{
// Master power for the GPS
#ifdef PIN_GPS_EN
digitalWrite(PIN_GPS_EN, PIN_GPS_EN);
pinMode(PIN_GPS_EN, OUTPUT);
#endif
setAwake(true); // Wake GPS power before doing any init
bool ok = setupGPS();

Wyświetl plik

@ -245,11 +245,15 @@ void setup()
#else
Wire.begin();
#endif
// i2c still busted on new board
#ifndef ARDUINO_NRF52840_PPR
scanI2Cdevice();
#ifdef PIN_LCD_RESET
// FIXME - move this someplace better
pinMode(PIN_LCD_RESET, OUTPUT);
digitalWrite(PIN_LCD_RESET, 0);
#endif
scanI2Cdevice();
// Buttons & LED
buttonThread = new ButtonThread();
#ifdef LED_PIN

Wyświetl plik

@ -138,7 +138,7 @@ bool NodeDB::resetRadioConfig()
crypto->setKey(channelSettings.psk.size, channelSettings.psk.bytes);
// temp hack for quicker testing
// devicestate.no_save = true;
devicestate.no_save = true;
if (devicestate.no_save) {
DEBUG_MSG("***** DEVELOPMENT MODE - DO NOT RELEASE *****\n");

Wyświetl plik

@ -49,7 +49,7 @@ void getMacAddr(uint8_t *dmac)
NRF52Bluetooth *nrf52Bluetooth;
static bool bleOn = false;
static const bool enableBle = true; // Set to false for easier debugging
static const bool enableBle = false; // Set to false for easier debugging
void setBluetoothEnable(bool on)
{

Wyświetl plik

@ -109,10 +109,15 @@ static const uint8_t AREF = PIN_AREF;
#define PIN_GPS_RESET 29 // active high?
#define PIN_GPS_PPS 28
#define PIN_GPS_WAKE 7 // GPS_EN active high?
// #define PIN_GPS_WAKE 20 // CELL_CTRL in schematic? based on their example code
#define PIN_GPS_EN 7 // GPS_EN active high?
#define PIN_VUSB_EN 21
// LCD
// #define PIN_LCD_RESET 23 // active high?
/*
* SPI Interfaces
*/