Merge pull request #58 from fpistm/patch-1

Generic Arduino_STM32 support
This commit was merged in pull request #58.
This commit is contained in:
Thomas O Fredericks
2020-02-20 18:48:35 -05:00
committed by GitHub
+1 -1
View File
@@ -191,7 +191,7 @@ class Bounce
unsigned long durationOfPreviousState;
virtual bool readCurrentState() { return digitalRead(pin); }
virtual void setPinMode(int pin, int mode) {
#if defined(ARDUINO_STM_NUCLEO_F103RB) || defined(ARDUINO_GENERIC_STM32F103C)
#if defined(ARDUINO_ARCH_STM32F1)
pinMode(pin, (WiringPinMode)mode);
#else
pinMode(pin, mode);