Merge pull request #35 from LieBtrau/master
Blue Pill port
This commit was merged in pull request #35.
This commit is contained in:
+5
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user