kopia lustrzana https://github.com/meshtastic/firmware
WIRE_INTERFACES_COUNT -> NO_WIRE
rodzic
b6e197371d
commit
d3cbc8ea78
|
@ -67,7 +67,7 @@ Router *router = NULL; // Users of router don't care what sort of subclass imple
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// Application
|
// Application
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
#if WIRE_INTERFACES_COUNT > 0
|
#ifndef NO_WIRE
|
||||||
void scanI2Cdevice(void)
|
void scanI2Cdevice(void)
|
||||||
{
|
{
|
||||||
byte err, addr;
|
byte err, addr;
|
||||||
|
@ -364,7 +364,7 @@ void setup()
|
||||||
|
|
||||||
#ifdef I2C_SDA
|
#ifdef I2C_SDA
|
||||||
Wire.begin(I2C_SDA, I2C_SCL);
|
Wire.begin(I2C_SDA, I2C_SCL);
|
||||||
#elif WIRE_INTERFACES_COUNT > 0
|
#elif !defined(NO_WIRE)
|
||||||
Wire.begin();
|
Wire.begin();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,7 @@ void nrf52Setup() {
|
||||||
void cpuDeepSleep(uint64_t msecToWake) {
|
void cpuDeepSleep(uint64_t msecToWake) {
|
||||||
// FIXME, configure RTC or button press to wake us
|
// FIXME, configure RTC or button press to wake us
|
||||||
// FIXME, power down SPI, I2C, RAMs
|
// FIXME, power down SPI, I2C, RAMs
|
||||||
#if WIRE_INTERFACES_COUNT > 0
|
#ifndef NO_WIRE
|
||||||
Wire.end();
|
Wire.end();
|
||||||
#endif
|
#endif
|
||||||
SPI.end();
|
SPI.end();
|
||||||
|
|
|
@ -93,6 +93,7 @@
|
||||||
|
|
||||||
#define SX1262_E22 // Not really an E22 but this board clones using DIO3 for tcxo control
|
#define SX1262_E22 // Not really an E22 but this board clones using DIO3 for tcxo control
|
||||||
|
|
||||||
|
#define NO_WIRE
|
||||||
#define NO_GPS
|
#define NO_GPS
|
||||||
#define NO_SCREEN
|
#define NO_SCREEN
|
||||||
#endif
|
#endif
|
||||||
|
|
Ładowanie…
Reference in New Issue