Skip to content

Commit 32025fb

Browse files
authored
fix:Example2 does not compile for Swan due to a missing directive (#65)
1 parent 215631b commit 32025fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/Example2_PeriodicCommunications/Example2_PeriodicCommunications.ino

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
#define buttonPin 6
2222
#define buttonPressedState LOW
2323
#define ledPin 4
24+
#elif defined(ARDUINO_ARCH_STM32)
25+
#define buttonPin USER_BTN
26+
#define buttonPressedState LOW
27+
#define ledPin LED_BUILTIN
2428
#else
2529
#error "please add a board definition for button and led"
2630
#define buttonPin ? // Change to any GPIO pin where there is an active-high button

0 commit comments

Comments
 (0)