---
title: "Wang MaoMao (@andelf) | Hashnode"
description: "Wang MaoMao (@andelf) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@andelf"
---

@andelf

# Wang MaoMao

@andelf · Joined January 2023

## Comments

[Omar Hiari Finally I figured out why the embassy\_time::Delay does not work. It is implemented using embassy\_time::Instant, which uses TIM2(time-driver-any feature). My selected PWM pin(TIM2\_CH2) also uses the TIM2 timer, so the instant value resets at each PWM cycle, resulting in an unusable Instant. Never mind, cortex\_m::delay::Delay works great.](https://hashnode.com/posts/embedded-rust-embassy-pwm-generation/638e065090845e1bd201fb6d/comment/63c4ef1fd72a4e43689dbc74#reply-63cac5ca587fc59d3cd73850)

Reply · Article · Jan 20, 2023 · [Embedded Rust & Embassy: PWM Generation](https://hashnode.com/posts/embedded-rust-embassy-pwm-generation/638e065090845e1bd201fb6d)

[Thanks! This series is really helpful. I followed this PWM tut with my STM32WLE5x board using PB3, TIM2\_CH2. One thing I notice is that Delay hangs the program. A workaround is using cortex\_m::delay::Delay.](https://hashnode.com/posts/embedded-rust-embassy-pwm-generation/638e065090845e1bd201fb6d/comment/63c4ef1fd72a4e43689dbc74)

Comment · Article · Jan 16, 2023 · [Embedded Rust & Embassy: PWM Generation](https://hashnode.com/posts/embedded-rust-embassy-pwm-generation/638e065090845e1bd201fb6d)
