Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use Sender with avr-hal: the trait _embedded_hal_PwmPin is not implemented for avr_hal_generic::port::Pin<PwmOutput<Timer2Pwm>, PD3> #112

Open
highghlow opened this issue May 4, 2024 · 0 comments

Comments

@highghlow
Copy link

(I'm using arduino_hal with an Arduino UNO)

I use this code

let timer2 = Timer2Pwm::new(dp.TC2, Prescaler::Prescale64);
let mut sender_pin = pins.d3.into_output().into_pwm(&timer2);
let ir_sender = Sender::new(sender_pin);

to initialize the sender, but get an error:

the trait `_embedded_hal_PwmPin` is not implemented for `avr_hal_generic::port::Pin<PwmOutput<Timer2Pwm>, PD3>`

I was unable to implement the trait myself. Is it possible to use Sender with avr-hal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant