Search found 1 match

by sale
Thu May 14, 2020 12:53 pm
Forum: Libraries & Hardware
Topic: HardwareTimer library (examples) do not work
Replies: 3
Views: 4323

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...

Go to advanced search