Skip to content

blinking to fast #34

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

Closed
vingeni opened this issue Apr 4, 2021 · 3 comments · Fixed by #39
Closed

blinking to fast #34

vingeni opened this issue Apr 4, 2021 · 3 comments · Fixed by #39

Comments

@vingeni
Copy link

vingeni commented Apr 4, 2021

Hi, the led is blinking too fast.
This is probably due to this bug on avr-delay ?

It worked well with the previous "hacky loop"

@crazcalm
Copy link

@vingeni I am not sure if you are still using Rust to mess with your Arduino, but there is a avr-hal crate. Their blinking example works for me.

@darionesi
Copy link

I've added

[profiles.release]
lto = true

as per this suggestion I've found on reddit and now the code in this repo makes the arduino blink as expected

@bmgxyz
Copy link

bmgxyz commented Dec 12, 2021

That suggestion worked for me, although it looks like the correct key is profile (singular), not profiles (plural).

I used:

[profile.release]
lto = true

See this section in The Cargo Book.

jwillikers added a commit to jwillikers/blink that referenced this issue Jun 4, 2022
The LED blinks much too rapidly without LTO enabled.
With LTO enabled, the LED blinks 1 second on, 1 second off.

Fixes avr-rust#34.
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

Successfully merging a pull request may close this issue.

4 participants