Skip to content

Commit 74e2f53

Browse files
committed
Working on FruitJam
1 parent 0b6964b commit 74e2f53

File tree

4 files changed

+26
-12
lines changed

4 files changed

+26
-12
lines changed

src/Wippersnapper.h

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,24 @@
4747
// Define actual debug output functions when necessary.
4848
#ifdef WS_DEBUG
4949
#define WS_DEBUG_PRINT(...) \
50-
{ WS_PRINTER.print(__VA_ARGS__); } ///< Prints debug output.
50+
{ \
51+
WS_PRINTER.print(__VA_ARGS__); \
52+
} ///< Prints debug output.
5153
#define WS_DEBUG_PRINTLN(...) \
52-
{ WS_PRINTER.println(__VA_ARGS__); } ///< Prints line from debug output.
54+
{ \
55+
WS_PRINTER.println(__VA_ARGS__); \
56+
} ///< Prints line from debug output.
5357
#define WS_DEBUG_PRINTHEX(...) \
54-
{ WS_PRINTER.print(__VA_ARGS__, HEX); } ///< Prints debug output.
58+
{ \
59+
WS_PRINTER.print(__VA_ARGS__, HEX); \
60+
} ///< Prints debug output.
5561
#else
5662
#define WS_DEBUG_PRINT(...) \
57-
{} ///< Prints debug output
63+
{ \
64+
} ///< Prints debug output
5865
#define WS_DEBUG_PRINTLN(...) \
59-
{} ///< Prints line from debug output.
66+
{ \
67+
} ///< Prints line from debug output.
6068
#endif
6169

6270
#define WS_DELAY_WITH_WDT(timeout) \
@@ -142,7 +150,7 @@
142150
#endif
143151

144152
#define WS_VERSION \
145-
"1.0.0-beta.110" ///< WipperSnapper app. version (semver-formatted)
153+
"1.0.0-beta.111" ///< WipperSnapper app. version (semver-formatted)
146154

147155
// Reserved Adafruit IO MQTT topics
148156
#define TOPIC_IO_THROTTLE "/throttle" ///< Adafruit IO Throttle MQTT Topic

src/Wippersnapper_Boards.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@
229229
#define USE_STATUS_NEOPIXEL
230230
#define STATUS_NEOPIXEL_PIN PIN_NEOPIXEL
231231
#define STATUS_NEOPIXEL_NUM 5
232-
#define USE_PSRAM
233232
#else
234233
#warning "Board type not identified within Wippersnapper_Boards.h!"
235234
#endif

src/Wippersnapper_Networking.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323

2424
#if defined(ADAFRUIT_METRO_M4_EXPRESS) || \
2525
defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE) || defined(ADAFRUIT_PYPORTAL) || \
26-
defined(ADAFRUIT_PYPORTAL_M4_TITANO) || defined(USE_AIRLIFT)
26+
defined(ADAFRUIT_PYPORTAL_M4_TITANO) || defined(USE_AIRLIFT) || \
27+
defined(ADAFRUIT_FRUITJAM_RP2350)
2728
#include "network_interfaces/Wippersnapper_AIRLIFT.h"
2829
/** Nina-FW (adafruit fork) networking class */
2930
typedef Wippersnapper_AIRLIFT Wippersnapper_WiFi;

src/network_interfaces/Wippersnapper_AIRLIFT.h

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
#define AIRLIFT_CONNECT_TIMEOUT_MS 20000 /*!< Connection timeout (in ms) */
3333
#define AIRLIFT_CONNECT_RETRY_DELAY_MS 200 /*!< delay time between retries. */
3434

35+
#ifndef SPIWIFI
3536
#define SPIWIFI SPI /*!< Instance of SPI interface used by an AirLift. */
37+
#endif
3638

3739
extern Wippersnapper WS;
3840
/****************************************************************************/
@@ -49,9 +51,13 @@ class Wippersnapper_AIRLIFT : public Wippersnapper {
4951
*/
5052
/**************************************************************************/
5153
Wippersnapper_AIRLIFT() : Wippersnapper() {
52-
_ssPin = SPIWIFI_SS; // 10;
53-
_ackPin = SPIWIFI_ACK; // 7;
54-
_rstPin = SPIWIFI_RESET; // 5; // should be 7 on PyPortals
54+
_ssPin = SPIWIFI_SS;
55+
_ackPin = SPIWIFI_ACK;
56+
#ifdef ESP32_RESETN
57+
_rstPin = ESP32_RESETN; // FruitJam
58+
#else
59+
_rstPin = SPIWIFI_RESET;
60+
#endif // ESP32_RESETN
5561
#ifdef ESP32_GPIO0
5662
_gpio0Pin = ESP32_GPIO0;
5763
#else
@@ -236,7 +242,7 @@ class Wippersnapper_AIRLIFT : public Wippersnapper {
236242
*/
237243
/********************************************************/
238244
void getMacAddr() {
239-
uint8_t mac[6] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
245+
byte mac[6] = {0};
240246
WiFi.macAddress(mac);
241247
memcpy(WS._macAddr, mac, sizeof(mac));
242248
}

0 commit comments

Comments
 (0)