Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

add 2wire pins for state

Geof005674ac97b
diff --git a/src/States/GlobalState.h b/src/States/GlobalState.h
index 71aa980c..30f81d89 100644
--- a/src/States/GlobalState.h
+++ b/src/States/GlobalState.h
@@ -315,6 +315,15 @@ public:
#ifdef I2S_BITS
i2sBitsPerSample = I2S_BITS;
#endif
+ #ifdef TWOWIRE_CLK_PIN
+ twoWireClkPin = TWOWIRE_CLK_PIN;
+ #endif
+ #ifdef TWOWIRE_IO_PIN
+ twoWireIoPin = TWOWIRE_IO_PIN;
+ #endif
+ #ifdef TWOWIRE_RST_PIN
+ twoWireRstPin = TWOWIRE_RST_PIN;
+ #endif
#ifdef PROTECTED_PINS
{