Search found 1 match
- Thu May 14, 2020 12:53 pm
- Forum: Libraries & Hardware
- Topic: HardwareTimer library (examples) do not work
- Replies: 3
- Views: 4389
Re: HardwareTimer library (examples) do not work
For me, the blue pill plate works try this #define pin PB9 void setup() { Serial.begin(9600); TIM_TypeDef *Instance = (TIM_TypeDef *)pinmap_peripheral(digitalPinToPinName(pin), PinMap_PWM); uint32_t channel = STM_PIN_CHANNEL(pinmap_function(digitalPinToPinName(pin), PinMap_PWM)); // Instantiate Hard...