Merge pull request #35 from LieBtrau/master

Blue Pill port
This commit was merged in pull request #35.
This commit is contained in:
Thomas O Fredericks
2017-10-30 10:26:00 -04:00
committed by GitHub
+5 -2
View File
@@ -33,8 +33,11 @@ void Bounce::attach(int pin) {
}
void Bounce::attach(int pin, int mode){
pinMode(pin, mode);
#if defined(ARDUINO_STM_NUCLEO_F103RB) || defined(ARDUINO_GENERIC_STM32F103C)
pinMode(pin, (WiringPinMode)mode);
#else
pinMode(pin, mode);
#endif
this->attach(pin);
}