Permalink
Browse files

Blue Pill port

Signed-off-by: Christoph Tack <prog.send@gmail.com>
  • Loading branch information...
Christoph Tack
Christoph Tack committed Oct 29, 2017
1 parent 8b60f9f commit 2d586f5b5095f353461c58f4bebd4f52cabbf5f5
Showing with 5 additions and 2 deletions.
  1. +5 −2 Bounce2.cpp
View
@@ -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);
}

0 comments on commit 2d586f5

Please sign in to comment.