Skip to content

Commit 01011f9

Browse files
authored
Merge pull request #36 from gbr1/main
fix: error if nano esp32 and selected Arduino pin number
2 parents 9c948fe + 71ca9fb commit 01011f9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Modulino.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
#ifndef ARDUINO_LIBRARIES_MODULINO_H
55
#define ARDUINO_LIBRARIES_MODULINO_H
66

7+
#if defined(ESP32) && defined(BOARD_HAS_PIN_REMAP) && defined(tone)
8+
#error "The current configuration is unsupported, switch Pin Numbering to "By GPIO number" or #undef tone and #undef noTone in the beginning of your sketch."
9+
#error "Learn more at: https://support.arduino.cc/hc/en-us/articles/10483225565980-Select-pin-numbering-for-Nano-ESP32-in-Arduino-IDE"
10+
#endif
11+
712
#include "Wire.h"
813
#include <vl53l4cd_class.h> // from stm32duino
914
#include <vl53l4ed_class.h> // from stm32duino

0 commit comments

Comments
 (0)