Skip to content

Commit f82ece2

Browse files
authored
BREAK: Swap Swan v1/v3 B0 Support (#89)
- `B0` #define now supports Swan v3(`PH3`) - Swan v1 (deprecated) must now use `B0_V1`, instead of `B0` to maintain functionality in previously compiled programs _**NOTE:** `CS` pin (`PD0`) is no longer exposed via Swan v3 Feather headers (castellated only)_
1 parent 6e12ebd commit f82ece2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Notecarrier.h

+8-1
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,22 @@
155155

156156
#elif defined(ARDUINO_SWAN_R5)
157157

158+
// Swan v1 (deprecated)
158159
#ifdef CS
159160
#undef CS
160161
#endif
161162
#define CS PD0
162163

164+
#ifdef B0_V1
165+
#undef B0_V1
166+
#endif
167+
#define B0_V1 CS
168+
169+
// Swan v3
163170
#ifdef B0
164171
#undef B0
165172
#endif
166-
#define B0 CS
173+
#define B0 PH3
167174

168175
#endif
169176

0 commit comments

Comments
 (0)